Skip to content

Commit 73793ce

Browse files
authored
Update Dependency with chardet>=3.0.2,<6 (#6179)
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. Signed-off-by: Wong Hoi Sing Edison <[email protected]>
1 parent da9996f commit 73793ce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

requests/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ def check_compatibility(urllib3_version, chardet_version, charset_normalizer_ver
7575
if chardet_version:
7676
major, minor, patch = chardet_version.split(".")[:3]
7777
major, minor, patch = int(major), int(minor), int(patch)
78-
# chardet_version >= 3.0.2, < 5.0.0
79-
assert (3, 0, 2) <= (major, minor, patch) < (5, 0, 0)
78+
# chardet_version >= 3.0.2, < 6.0.0
79+
assert (3, 0, 2) <= (major, minor, patch) < (6, 0, 0)
8080
elif charset_normalizer_version:
8181
major, minor, patch = charset_normalizer_version.split(".")[:3]
8282
major, minor, patch = int(major), int(minor), int(patch)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def run_tests(self):
123123
extras_require={
124124
"security": [],
125125
"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"],
127127
},
128128
project_urls={
129129
"Documentation": "https://requests.readthedocs.io",

0 commit comments

Comments
 (0)