mirror of https://github.com/pypa/pip
Update the vendored requests for the moved compat module
This commit is contained in:
parent
4fc697847a
commit
abfe928385
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue