From e316a702071feecc059102e032439e8ca0551c1a Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Mon, 16 Jan 2017 14:35:33 -0500 Subject: Simply invoke addstore twice, rather than looping. --- setuptools/ssl_support.py | 8 ++++---- 1 file 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 -- cgit v1.2.1