From b77c1a3debbca5f7317773a2a7a75540ad4c45cf Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Wed, 26 Jul 2017 10:23:01 +0100 Subject: [PATCH] Correct urllib3 compatibility comment 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/ --- requests/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requests/__init__.py b/requests/__init__.py index 90a0d11a..268e7dcc 100644 --- a/requests/__init__.py +++ b/requests/__init__.py @@ -57,7 +57,7 @@ def check_compatibility(urllib3_version, chardet_version): # 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 + # urllib3 >= 1.21.1, <= 1.22 assert major == 1 assert minor >= 21 assert minor <= 22