Skip to content

Commit b294b08

Browse files
authored
Consider urllib3 version has 3 numbers at most (#7375) (#7376)
1 parent 5f3ff9b commit b294b08

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/requests/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757

5858
def check_compatibility(urllib3_version, chardet_version, charset_normalizer_version):
59-
urllib3_version = urllib3_version.split(".")
59+
urllib3_version = urllib3_version.split(".")[:3]
6060
assert urllib3_version != ["dev"] # Verify urllib3 isn't installed from git.
6161

6262
# Sometimes, urllib3 only reports its version as 16.1.

0 commit comments

Comments
 (0)