Update dependency chardet to v7.1.0 #76
Reference in New Issue
Block a user
Delete Branch "renovate/chardet-7.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
==7.0.1→==7.1.0Release Notes
chardet/chardet (chardet)
v7.1.0: chardet 7.1.0Compare Source
Features
# -*- coding: ... -*-and# coding=...declarations on lines 1–2 of Python source files are now recognized with confidence 0.95 (#249)chardet.universaldetectorbackward-compatibility stub so thatfrom chardet.universaldetector import UniversalDetectorworks with a deprecation warning (#341)Fixes
++or+wordpatterns (#332)detect()call — model norms are now computed during loading instead of lazily iterating 21M entries (#333)detect()now returns chardet 5.x-compatible names by default (#338)iter_unpackyielded fewer tuples instead of raising)Performance
load_models()struct.iter_unpackfor bulk entry extraction (eliminates ~305K individualunpackcalls)New API parameters
compat_namesparameter (defaultTrue) todetect(),detect_all(), andUniversalDetector— set toFalseto get raw Python codec names instead of chardet 5.x/6.x compatible display namesprefer_supersetparameter (defaultFalse) — remaps legacy ISO/subset encodings to their modern Windows/CP superset equivalents (e.g., ASCII → Windows-1252, ISO-8859-1 → Windows-1252). This will default toTruein the next major version (8.0).should_rename_legacyin favor ofprefer_superset— a deprecation warning is emitted when usedImprovements
"utf-8"instead of"UTF-8"), withcompat_namescontrolling the public output formatlookup_encoding()toregistryfor case-insensitive resolution of arbitrary encoding name input to canonical namesFull changelog: https://chardet.readthedocs.io/en/latest/changelog.html
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.