Skip to content

Commit 4bd79e3

Browse files
aminvakilsigmavirus24
authored andcommitted
Increase chardet upper limit to 7
1 parent da9113c commit 4bd79e3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Source = "https://github.com/psf/requests"
5151
[project.optional-dependencies]
5252
security = []
5353
socks = ["PySocks>=1.5.6, !=1.5.7"]
54-
use_chardet_on_py3 = ["chardet>=3.0.2,<6"]
54+
use_chardet_on_py3 = ["chardet>=3.0.2,<7"]
5555
test = [
5656
"pytest-httpbin==2.1.0",
5757
"pytest-cov",

src/requests/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def check_compatibility(urllib3_version, chardet_version, charset_normalizer_ver
7676
major, minor, patch = chardet_version.split(".")[:3]
7777
major, minor, patch = int(major), int(minor), int(patch)
7878
# chardet_version >= 3.0.2, < 6.0.0
79-
assert (3, 0, 2) <= (major, minor, patch) < (6, 0, 0)
79+
assert (3, 0, 2) <= (major, minor, patch) < (7, 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)

0 commit comments

Comments
 (0)