Skip to content
Myr

Consider urllib3 version has 3 numbers at most (#7375) (#7376)

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

authored by Dejan SANADER · committed by GitHub · parent 5f3ff9b · Browse files · 1 file+1 added−1 removed
This commit

State

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

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/requests/__init__.py+1 added-1 removed
54 unmodified lines
55 chardet_version = None565758def check_compatibility(urllib3_version, chardet_version, charset_normalizer_version):59 urllib3_version = urllib3_version.split(".")59 urllib3_version = urllib3_version.split(".")[:3]60 assert urllib3_version != ["dev"] # Verify urllib3 isn't installed from git.6162 # Sometimes, urllib3 only reports its version as 16.1.63 if len(urllib3_version) == 2:
120 unmodified lines