aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/ssl_support.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2017-01-16 14:35:33 -0500
committerJason R. Coombs <jaraco@jaraco.com>2017-01-16 14:36:11 -0500
commite316a702071feecc059102e032439e8ca0551c1a (patch)
tree14c6dd7decd4fb1443df51d5625f43e6f8f05656 /setuptools/ssl_support.py
parent7b322451271218e3e8f5a207958928268c34e916 (diff)
downloadexternal_python_setuptools-e316a702071feecc059102e032439e8ca0551c1a.tar.gz
external_python_setuptools-e316a702071feecc059102e032439e8ca0551c1a.tar.bz2
external_python_setuptools-e316a702071feecc059102e032439e8ca0551c1a.zip
Simply invoke addstore twice, rather than looping.
Diffstat (limited to 'setuptools/ssl_support.py')
-rw-r--r--setuptools/ssl_support.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/setuptools/ssl_support.py b/setuptools/ssl_support.py
index af28ca2f..72b18ef2 100644
--- a/setuptools/ssl_support.py
+++ b/setuptools/ssl_support.py
@@ -222,10 +222,8 @@ def get_win_certfile():
return None
class CertFile(wincertstore.CertFile):
- def __init__(self, stores=()):
+ def __init__(self):
super(CertFile, self).__init__()
- for store in stores:
- self.addstore(store)
atexit.register(self.close)
def close(self):
@@ -234,7 +232,9 @@ def get_win_certfile():
except OSError:
pass
- _wincerts = CertFile(stores=['CA', 'ROOT'])
+ _wincerts = CertFile()
+ _wincerts.addstore('CA')
+ _wincerts.addstore('ROOT')
return _wincerts.name