1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

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) RequestsDependencyWarning)
# Attempt to enable urllib3's SNI support, if possible # 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: if not WINDOWS:
try: try:
from pip._vendor.urllib3.contrib import pyopenssl from pip._vendor.urllib3.contrib import pyopenssl

View file

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