aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/ssl_support.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2017-01-16 14:31:41 -0500
committerJason R. Coombs <jaraco@jaraco.com>2017-01-16 14:31:41 -0500
commit7b322451271218e3e8f5a207958928268c34e916 (patch)
treeda32563f0a5875f5e43790c60af8e142362b79b8 /setuptools/ssl_support.py
parent89cbd6c2c6355f0fa99e86394a6d86e1b624950d (diff)
downloadexternal_python_setuptools-7b322451271218e3e8f5a207958928268c34e916.tar.gz
external_python_setuptools-7b322451271218e3e8f5a207958928268c34e916.tar.bz2
external_python_setuptools-7b322451271218e3e8f5a207958928268c34e916.zip
Rely on namespacing to discriminate between novel class and parent.
Diffstat (limited to 'setuptools/ssl_support.py')
-rw-r--r--setuptools/ssl_support.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/setuptools/ssl_support.py b/setuptools/ssl_support.py
index efd22d5f..af28ca2f 100644
--- a/setuptools/ssl_support.py
+++ b/setuptools/ssl_support.py
@@ -217,24 +217,24 @@ def once(func):
@once
def get_win_certfile():
try:
- from wincertstore import CertFile
+ import wincertstore
except ImportError:
return None
- class MyCertFile(CertFile):
+ class CertFile(wincertstore.CertFile):
def __init__(self, stores=()):
- CertFile.__init__(self)
+ super(CertFile, self).__init__()
for store in stores:
self.addstore(store)
atexit.register(self.close)
def close(self):
try:
- super(MyCertFile, self).close()
+ super(CertFile, self).close()
except OSError:
pass
- _wincerts = MyCertFile(stores=['CA', 'ROOT'])
+ _wincerts = CertFile(stores=['CA', 'ROOT'])
return _wincerts.name