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:
parent
4fc697847a
commit
abfe928385
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue