aboutsummaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
authorDaniele Tricoli <eriol@mornie.org>2014-05-24 22:26:42 +0000
committerDaniele Tricoli <eriol@mornie.org>2014-05-24 22:26:42 +0000
commitb6564b803240a6f543f55153b47a50475b7ff3b2 (patch)
treed904e6d88c5096ac09e420fc81f7a880ba92aece /debian/patches
parent12283202d3dda201ae753c6e671f7b492bc24d63 (diff)
downloadpython-urllib3-b6564b803240a6f543f55153b47a50475b7ff3b2.tar
python-urllib3-b6564b803240a6f543f55153b47a50475b7ff3b2.tar.gz
Do not use embedded copy of ssl.match_hostname
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/05_do-not-use-embedded-ssl-match-hostname.patch45
-rw-r--r--debian/patches/series1
2 files changed, 46 insertions, 0 deletions
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 <eriol@mornie.org>
+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