Skip to content
Myr

Update Dependency with `chardet>=3.0.2,<6` (#6179)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

https://github.com/chardet/chardet/releases/tag/5.0.0 was released on 2022-06-25 with remove of Python 3.6 support, which also align with our Python > 3.6 requirement.

authored by Wong Hoi Sing Edison · committed by GitHub · parent da9996f · Browse files · 2 files+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>

Diff stats

2 files+3 added−3 removed

  • other:+3 added−3 removed

2 files+3 added−3 removed

modified:requests/__init__.py+2 added-2 removed
73 unmodified lines
74 # Check charset_normalizer for compatibility.75 if chardet_version:76 major, minor, patch = chardet_version.split(".")[:3]77 major, minor, patch = int(major), int(minor), int(patch)78 # chardet_version >= 3.0.2, < 5.0.079 assert (3, 0, 2) <= (major, minor, patch) < (5, 0, 0)78 # chardet_version >= 3.0.2, < 6.0.079 assert (3, 0, 2) <= (major, minor, patch) < (6, 0, 0)80 elif charset_normalizer_version:81 major, minor, patch = charset_normalizer_version.split(".")[:3]82 major, minor, patch = int(major), int(minor), int(patch)83 # charset_normalizer >= 2.0.0 < 3.0.0
97 unmodified lines
modified:setup.py+1 added-1 removed
121 unmodified lines
122 tests_require=test_requirements,123 extras_require={124 "security": [],125 "socks": ["PySocks>=1.5.6, !=1.5.7"],126 "use_chardet_on_py3": ["chardet>=3.0.2,<5"],126 "use_chardet_on_py3": ["chardet>=3.0.2,<6"],127 },128 project_urls={129 "Documentation": "https://requests.readthedocs.io",130 "Source": "https://github.com/psf/requests",
2 unmodified lines