diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2017-01-16 14:35:33 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2017-01-16 14:36:11 -0500 |
commit | e316a702071feecc059102e032439e8ca0551c1a (patch) | |
tree | 14c6dd7decd4fb1443df51d5625f43e6f8f05656 /setuptools/ssl_support.py | |
parent | 7b322451271218e3e8f5a207958928268c34e916 (diff) | |
download | external_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.py | 8 |
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 |