aboutsummaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
authorDaniele Tricoli <eriol@mornie.org>2014-01-27 05:01:20 +0000
committerDaniele Tricoli <eriol@mornie.org>2014-01-27 05:01:20 +0000
commit924978c34fe08f41d073751d411795c79d18b35a (patch)
treeca2488fa67c6ad0481848c2fc217e41aaee2ebaf /debian/patches
parent9b6f6a835df82b22bb58eaf4f43e4fd148b8f969 (diff)
downloadpython-requests-924978c34fe08f41d073751d411795c79d18b35a.tar
python-requests-924978c34fe08f41d073751d411795c79d18b35a.tar.gz
Converted further imports from embedded packages to system modules
Diffstat (limited to 'debian/patches')
-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):