Update the vendored requests for the moved compat module

This commit is contained in:
Pradyun Gedam 2018-07-29 16:43:19 +05:30
parent 4fc697847a
commit abfe928385
No known key found for this signature in database
GPG Key ID: DA17C4B29CB32E4B
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ except (AssertionError, ValueError):
RequestsDependencyWarning)
# Attempt to enable urllib3's SNI support, if possible
from pip._internal.compat import WINDOWS
from pip._internal.utils.compat import WINDOWS
if not WINDOWS:
try:
from pip._vendor.urllib3.contrib import pyopenssl

View File

@ -37,7 +37,7 @@ index 9c3b769..36a4ef40 100644
- _check_cryptography(cryptography_version)
-except ImportError:
- pass
+from pip._internal.compat import WINDOWS
+from pip._internal.utils.compat import WINDOWS
+if not WINDOWS:
+ try:
+ from pip._vendor.urllib3.contrib import pyopenssl