edit /usr/lib/python3/dist-packages/requests/__init__.py
# Check urllib3 for compatibility.
major, minor, patch = urllib3_version # noqa: F811
major, minor, patch = int(major), int(minor), int(patch)
# urllib3 >= 1.21.1, <= 1.22
assert major == 1
assert minor >= 21
### assert minor <= 22
assert minor <= 25 <<<<<<<<<<===================== new line
# 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
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment