[Python-modules-commits] r27448 - in packages/requests/trunk/debian/patches (1 file)

eriol-guest at users.alioth.debian.org eriol-guest at users.alioth.debian.org
Mon Jan 27 05:01:21 UTC 2014


    Date: Monday, January 27, 2014 @ 05:01:20
  Author: eriol-guest
Revision: 27448

Converted further imports from embedded packages to system modules

Modified:
  packages/requests/trunk/debian/patches/02_use-system-chardet-and-urllib3.patch

Modified: packages/requests/trunk/debian/patches/02_use-system-chardet-and-urllib3.patch
===================================================================
--- packages/requests/trunk/debian/patches/02_use-system-chardet-and-urllib3.patch	2014-01-27 04:00:20 UTC (rev 27447)
+++ packages/requests/trunk/debian/patches/02_use-system-chardet-and-urllib3.patch	2014-01-27 05:01:20 UTC (rev 27448)
@@ -85,3 +85,25 @@
  ]
  
  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):




More information about the Python-modules-commits mailing list