mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-21 15:20:59 +00:00
729e790ef4
Signed-off-by: Dan Ryan <dan@danryan.co>
22 lines
1.1 KiB
Diff
22 lines
1.1 KiB
Diff
diff --git a/pipenv/patched/notpip/_vendor/requests/packages.py b/pipenv/patched/notpip/_vendor/requests/packages.py
|
|
index 9582fa73..258c89ed 100644
|
|
--- a/pipenv/patched/notpip/_vendor/requests/packages.py
|
|
+++ b/pipenv/patched/notpip/_vendor/requests/packages.py
|
|
@@ -4,13 +4,13 @@ import sys
|
|
# I don't like it either. Just look the other way. :)
|
|
|
|
for package in ('urllib3', 'idna', 'chardet'):
|
|
- vendored_package = "pip._vendor." + package
|
|
+ vendored_package = "notpip._vendor." + package
|
|
locals()[package] = __import__(vendored_package)
|
|
# This traversal is apparently necessary such that the identities are
|
|
# preserved (requests.packages.urllib3.* is urllib3.*)
|
|
for mod in list(sys.modules):
|
|
if mod == vendored_package or mod.startswith(vendored_package + '.'):
|
|
- unprefixed_mod = mod[len("pip._vendor."):]
|
|
- sys.modules['pip._vendor.requests.packages.' + unprefixed_mod] = sys.modules[mod]
|
|
+ unprefixed_mod = mod[len("notpip._vendor."):]
|
|
+ sys.modules['notpip._vendor.requests.packages.' + unprefixed_mod] = sys.modules[mod]
|
|
|
|
# Kinda cool, though, right?
|