[Python-modules-commits] [python-pip] 04/08: Debian already unbundles things from requests.

Barry Warsaw barry at moszumanska.debian.org
Thu Feb 25 22:09:48 UTC 2016


This is an automated email from the git hooks/post-receive script.

barry pushed a commit to branch master
in repository python-pip.

commit dba4d7413a1f01a2ac3987f3c18e2576b1e48925
Author: Barry Warsaw <barry at python.org>
Date:   Fri Jan 29 16:56:43 2016 -0500

    Debian already unbundles things from requests.
    
    Patch-Name: handle-unbundled-requests.patch
---
 pip/_vendor/__init__.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/pip/_vendor/__init__.py b/pip/_vendor/__init__.py
index 1cb35a1..c64896a 100644
--- a/pip/_vendor/__init__.py
+++ b/pip/_vendor/__init__.py
@@ -82,8 +82,12 @@ if DEBUNDLED:
     vendored("requests.packages.urllib3.fields")
     vendored("requests.packages.urllib3.filepost")
     vendored("requests.packages.urllib3.packages")
-    vendored("requests.packages.urllib3.packages.ordered_dict")
-    vendored("requests.packages.urllib3.packages.six")
+    try:
+        vendored("requests.packages.urllib3.packages.ordered_dict")
+        vendored("requests.packages.urllib3.packages.six")
+    except ImportError:
+        # Debian already unbundles these from requests.
+        pass
     vendored("requests.packages.urllib3.packages.ssl_match_hostname")
     vendored("requests.packages.urllib3.packages.ssl_match_hostname."
              "_implementation")

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-pip.git



More information about the Python-modules-commits mailing list