From 696eb71f386cc0c21cde533fd2572b69823bddad Mon Sep 17 00:00:00 2001 From: Daniele Tricoli Date: Sun, 31 Aug 2014 23:02:07 +0000 Subject: Refresh 05_do-not-use-embedded-ssl-match-hostname.patch --- debian/changelog | 4 +++- .../05_do-not-use-embedded-ssl-match-hostname.patch | 20 ++++++++++---------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/debian/changelog b/debian/changelog index 792afaf..10eed10 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,8 +5,10 @@ python-urllib3 (1.9-1) UNRELEASED; urgency=medium - Refresh * debian/patches/02_require-cert-verification.patch - Refresh + * debian/patches/05_do-not-use-embedded-ssl-match-hostname.patch + - Refresh - -- Daniele Tricoli Mon, 01 Sep 2014 00:48:18 +0200 + -- Daniele Tricoli Mon, 01 Sep 2014 01:00:03 +0200 python-urllib3 (1.8.3-1) unstable; urgency=medium diff --git a/debian/patches/05_do-not-use-embedded-ssl-match-hostname.patch b/debian/patches/05_do-not-use-embedded-ssl-match-hostname.patch index 9ee4cb9..17c858d 100644 --- a/debian/patches/05_do-not-use-embedded-ssl-match-hostname.patch +++ b/debian/patches/05_do-not-use-embedded-ssl-match-hostname.patch @@ -1,14 +1,14 @@ Description: Do not use embedded copy of ssl.match_hostname. Author: Daniele Tricoli Forwarded: not-needed -Last-Update: 2014-05-25 +Last-Update: 2014-09-01 --- a/test/test_connectionpool.py +++ b/test/test_connectionpool.py @@ -6,7 +6,7 @@ HTTPConnectionPool, ) - from urllib3.util import Timeout + from urllib3.util.timeout import Timeout -from urllib3.packages.ssl_match_hostname import CertificateError +from ssl import CertificateError from urllib3.exceptions import ( @@ -16,20 +16,20 @@ Last-Update: 2014-05-25 EmptyPoolError, --- a/urllib3/connection.py +++ b/urllib3/connection.py -@@ -38,7 +38,7 @@ +@@ -27,7 +27,7 @@ from .exceptions import ( ConnectTimeoutError, ) -from .packages.ssl_match_hostname import match_hostname +from ssl import match_hostname import six - from .util import ( - assert_fingerprint, + + from .util.ssl_ import ( --- a/urllib3/connectionpool.py +++ b/urllib3/connectionpool.py -@@ -31,7 +31,7 @@ - ReadTimeoutError, - ProxyError, +@@ -26,7 +26,7 @@ + TimeoutError, + InsecureRequestWarning, ) -from .packages.ssl_match_hostname import CertificateError +from ssl import CertificateError @@ -45,7 +45,7 @@ Last-Update: 2014-05-25 --- a/setup.py +++ b/setup.py -@@ -45,7 +45,7 @@ +@@ -42,7 +42,7 @@ url='http://urllib3.readthedocs.org/', license='MIT', packages=['urllib3', @@ -53,4 +53,4 @@ Last-Update: 2014-05-25 + 'urllib3.packages', 'urllib3.contrib', 'urllib3.util', ], - requires=requirements, + requires=[], -- cgit v1.2.3