diff --git a/requests/__init__.py b/requests/__init__.py index 343e5082d3..7ac8e297b8 100644 --- a/requests/__init__.py +++ b/requests/__init__.py @@ -75,8 +75,8 @@ def check_compatibility(urllib3_version, chardet_version, charset_normalizer_ver if chardet_version: major, minor, patch = chardet_version.split(".")[:3] major, minor, patch = int(major), int(minor), int(patch) - # chardet_version >= 3.0.2, < 5.0.0 - assert (3, 0, 2) <= (major, minor, patch) < (5, 0, 0) + # chardet_version >= 3.0.2, < 6.0.0 + assert (3, 0, 2) <= (major, minor, patch) < (6, 0, 0) elif charset_normalizer_version: major, minor, patch = charset_normalizer_version.split(".")[:3] major, minor, patch = int(major), int(minor), int(patch) diff --git a/setup.py b/setup.py index ca7bc3a0cd..43c69fcfd2 100755 --- a/setup.py +++ b/setup.py @@ -123,7 +123,7 @@ def run_tests(self): extras_require={ "security": [], "socks": ["PySocks>=1.5.6, !=1.5.7"], - "use_chardet_on_py3": ["chardet>=3.0.2,<5"], + "use_chardet_on_py3": ["chardet>=3.0.2,<6"], }, project_urls={ "Documentation": "https://requests.readthedocs.io",