From b6564b803240a6f543f55153b47a50475b7ff3b2 Mon Sep 17 00:00:00 2001 From: Daniele Tricoli Date: Sat, 24 May 2014 22:26:42 +0000 Subject: Do not use embedded copy of ssl.match_hostname --- ...05_do-not-use-embedded-ssl-match-hostname.patch | 45 ++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 46 insertions(+) create mode 100644 debian/patches/05_do-not-use-embedded-ssl-match-hostname.patch (limited to 'debian/patches') 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 new file mode 100644 index 0000000..e536e69 --- /dev/null +++ b/debian/patches/05_do-not-use-embedded-ssl-match-hostname.patch @@ -0,0 +1,45 @@ +Description: Do not use embedded copy of ssl.match_hostname. +Author: Daniele Tricoli +Forwarded: not-needed +Last-Update: 2014-05-25 + +--- a/test/test_connectionpool.py ++++ b/test/test_connectionpool.py +@@ -6,7 +6,7 @@ + HTTPConnectionPool, + ) + from urllib3.util import Timeout +-from urllib3.packages.ssl_match_hostname import CertificateError ++from ssl import CertificateError + from urllib3.exceptions import ( + ClosedPoolError, + EmptyPoolError, +--- a/urllib3/connection.py ++++ b/urllib3/connection.py +@@ -38,7 +38,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, +--- a/urllib3/connectionpool.py ++++ b/urllib3/connectionpool.py +@@ -31,7 +31,7 @@ + ReadTimeoutError, + ProxyError, + ) +-from .packages.ssl_match_hostname import CertificateError ++from ssl import CertificateError + import six + from .connection import ( + port_by_scheme, +--- a/urllib3/packages/__init__.py ++++ b/urllib3/packages/__init__.py +@@ -1,4 +1,3 @@ + from __future__ import absolute_import + +-from . import ssl_match_hostname + diff --git a/debian/patches/series b/debian/patches/series index 8570821..cddf757 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -2,3 +2,4 @@ 02_require-cert-verification.patch 03_force_setuptools.patch 04_relax_nosetests_options.patch +05_do-not-use-embedded-ssl-match-hostname.patch -- cgit v1.2.3