Skip to content
Myr

Correct urllib3 compatibility comment

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

So that it's in line with the code. I saw the warning raised recently and had to dive into the code for exact compatibility, but I stopped after reading the comment rather than the code. Maybe a better solution would be to surface the supported versions in the warning, but I see it was changed recently in https://github.com/requests/requests/pull/4144/

authored by Bruno Alla · committed by GitHub · parent 9e8d403 · 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:requests/__init__.py+1 added-1 removed
55 unmodified lines
5657 # Check urllib3 for compatibility.58 major, minor, patch = urllib3_version # noqa: F81159 major, minor, patch = int(major), int(minor), int(patch)60 # urllib3 >= 1.21.1, < 1.2260 # urllib3 >= 1.21.1, <= 1.2261 assert major == 162 assert minor >= 2163 assert minor <= 2264
57 unmodified lines