Skip to content
Myr

Increase chardet upper limit to 8

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

authored by Dan Blanchard · committed by Nate Prewitt · parent 392b01f · 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

  • Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Diff stats

2 files+3 added−3 removed

  • other:+3 added−3 removed

2 files+3 added−3 removed

modified:src/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, < 6.0.079 assert (3, 0, 2) <= (major, minor, patch) < (7, 0, 0)78 # chardet_version >= 3.0.2, < 8.0.079 assert (3, 0, 2) <= (major, minor, patch) < (8, 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 < 4.0.0
100 unmodified lines
modified:pyproject.toml+1 added-1 removed