mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Merge pull request #5688 from dan-blanchard/patch-1
Upgrade to chardet 4.x
This commit is contained in:
@@ -65,10 +65,8 @@ def check_compatibility(urllib3_version, chardet_version):
|
||||
# Check chardet for compatibility.
|
||||
major, minor, patch = chardet_version.split('.')[:3]
|
||||
major, minor, patch = int(major), int(minor), int(patch)
|
||||
# chardet >= 3.0.2, < 3.1.0
|
||||
assert major == 3
|
||||
assert minor < 1
|
||||
assert patch >= 2
|
||||
# chardet >= 3.0.2, < 5.0.0
|
||||
assert (3, 0, 2) <= (major, minor, patch) < (5, 0, 0)
|
||||
|
||||
|
||||
def _check_cryptography(cryptography_version):
|
||||
|
||||
Reference in New Issue
Block a user