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

Barry Warsaw barry at moszumanska.debian.org
Fri Jan 29 22:34:16 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 144ba146cde273b815a80859537b09c068fd47e6
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