From 924978c34fe08f41d073751d411795c79d18b35a Mon Sep 17 00:00:00 2001 From: Daniele Tricoli Date: Mon, 27 Jan 2014 05:01:20 +0000 Subject: Converted further imports from embedded packages to system modules --- .../02_use-system-chardet-and-urllib3.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'debian/patches') 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): -- cgit v1.2.3