From 31bd37c6ac8de9e8c1bacebc2d8e1215df91eb96 Mon Sep 17 00:00:00 2001 From: stepshal Date: Tue, 18 Oct 2016 20:24:35 +0700 Subject: Fix quantity of blank lines. --- setuptools/ssl_support.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'setuptools/ssl_support.py') 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: -- cgit v1.2.3