File tree 2 files changed +16
-2
lines changed
2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ def check_compatibility(urllib3_version, chardet_version):
80
80
RequestsDependencyWarning )
81
81
82
82
# Attempt to enable urllib3's SNI support, if possible
83
- from pip .compat import WINDOWS
83
+ from pip ._internal . compat import WINDOWS
84
84
if not WINDOWS :
85
85
try :
86
86
from pip ._vendor .urllib3 .contrib import pyopenssl
Original file line number Diff line number Diff line change
1
+ diff --git a/src/pip/_vendor/requests/packages.py b/src/pip/_vendor/requests/packages.py
2
+ index 7232fe0f..6336a07d 100644
3
+ --- a/src/pip/_vendor/requests/packages.py
4
+ +++ b/src/pip/_vendor/requests/packages.py
5
+ @@ -4,7 +4,7 @@ import sys
6
+ # I don't like it either. Just look the other way. :)
7
+
8
+ for package in ('urllib3', 'idna', 'chardet'):
9
+ - locals()[package] = __import__(package)
10
+ + locals()[package] = __import__("pip._vendor." + package)
11
+ # This traversal is apparently necessary such that the identities are
12
+ # preserved (requests.packages.urllib3.* is urllib3.*)
13
+ for mod in list(sys.modules):
14
+
1
15
diff --git a/pip/_vendor/requests/__init__.py b/pip/_vendor/requests/__init__.py
2
16
index 9c3b769..36a4ef40 100644
3
17
--- a/src/pip/_vendor/requests/__init__.py
@@ -11,7 +25,7 @@ index 9c3b769..36a4ef40 100644
11
25
- pyopenssl.inject_into_urllib3()
12
26
- except ImportError:
13
27
- pass
14
- + from pip.compat import WINDOWS
28
+ + from pip._internal. compat import WINDOWS
15
29
+ if not WINDOWS:
16
30
+ try:
17
31
+ from pip._vendor.urllib3.contrib import pyopenssl
You can’t perform that action at this time.
0 commit comments