aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/patches/02_use-system-chardet-and-urllib3.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/patches/02_use-system-chardet-and-urllib3.patch b/debian/patches/02_use-system-chardet-and-urllib3.patch
index b9fd2b7..327d7b5 100644
--- a/debian/patches/02_use-system-chardet-and-urllib3.patch
+++ b/debian/patches/02_use-system-chardet-and-urllib3.patch
@@ -85,3 +85,25 @@ Last-Update: 2014-01-27
]
requires = []
+--- a/requests/__init__.py
++++ b/requests/__init__.py
+@@ -50,7 +50,7 @@
+
+ # Attempt to enable urllib3's SNI support, if possible
+ try:
+- from .packages.urllib3.contrib import pyopenssl
++ from urllib3.contrib import pyopenssl
+ pyopenssl.inject_into_urllib3()
+ except ImportError:
+ pass
+--- a/requests/exceptions.py
++++ b/requests/exceptions.py
+@@ -7,7 +7,7 @@
+ This module contains the set of Requests' exceptions.
+
+ """
+-from .packages.urllib3.exceptions import HTTPError as BaseHTTPError
++from urllib3.exceptions import HTTPError as BaseHTTPError
+
+
+ class RequestException(IOError):