aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/ssl_support.py
diff options
context:
space:
mode:
authorstepshal <nessento@openmailbox.org>2016-10-18 20:24:35 +0700
committerstepshal <nessento@openmailbox.org>2016-10-18 20:29:34 +0700
commit31bd37c6ac8de9e8c1bacebc2d8e1215df91eb96 (patch)
tree3a25ce5765a8c9ae633a3eaeec1ce88f7b382e21 /setuptools/ssl_support.py
parentf774a0be095c3873c2881d393605fefa5ca0d0d6 (diff)
downloadexternal_python_setuptools-31bd37c6ac8de9e8c1bacebc2d8e1215df91eb96.tar.gz
external_python_setuptools-31bd37c6ac8de9e8c1bacebc2d8e1215df91eb96.tar.bz2
external_python_setuptools-31bd37c6ac8de9e8c1bacebc2d8e1215df91eb96.zip
Fix quantity of blank lines.
Diffstat (limited to 'setuptools/ssl_support.py')
-rw-r--r--setuptools/ssl_support.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/setuptools/ssl_support.py b/setuptools/ssl_support.py
index 16272630..82f8870a 100644
--- a/setuptools/ssl_support.py
+++ b/setuptools/ssl_support.py
@@ -29,7 +29,6 @@ cert_paths = """
/etc/ssl/ca-bundle.pem
""".strip().split()
-
try:
HTTPSHandler = urllib.request.HTTPSHandler
HTTPSConnection = http_client.HTTPSConnection
@@ -50,10 +49,13 @@ except ImportError:
match_hostname = None
if not CertificateError:
+
class CertificateError(ValueError):
pass
+
if not match_hostname:
+
def _dnsname_match(dn, hostname, max_wildcards=1):
"""Matching according to RFC 6125, section 6.4.3
@@ -216,7 +218,6 @@ def get_win_certfile():
return None
class MyCertFile(CertFile):
-
def __init__(self, stores=(), certs=()):
CertFile.__init__(self)
for store in stores: