Skip to content

Commit b2a1d33

Browse files
dan-blanchardclaude
authored andcommitted
Increase chardet upper limit to 8
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 392b01f commit b2a1d33

2 files changed

Lines changed: 3 additions & 3 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,<7"]
54+
use_chardet_on_py3 = ["chardet>=3.0.2,<8"]
5555
test = [
5656
"pytest-httpbin==2.1.0",
5757
"pytest-cov",

src/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, < 6.0.0
79-
assert (3, 0, 2) <= (major, minor, patch) < (7, 0, 0)
78+
# chardet_version >= 3.0.2, < 8.0.0
79+
assert (3, 0, 2) <= (major, minor, patch) < (8, 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)