[Jython-checkins] jython: Fix programming error in _sslcerts.py
darjus.loktevic
jython-checkins at python.org
Fri Nov 13 23:22:26 EST 2015
https://hg.python.org/jython/rev/17443ce4824e
changeset: 7804:17443ce4824e
user: Tom Alexander <tom.alexander at datastax.com>
date: Sat Nov 14 15:20:17 2015 +1100
summary:
Fix programming error in _sslcerts.py
files:
Lib/_sslcerts.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Lib/_sslcerts.py b/Lib/_sslcerts.py
--- a/Lib/_sslcerts.py
+++ b/Lib/_sslcerts.py
@@ -97,18 +97,18 @@
if _key_store is None:
- key_store = KeyStore.getInstance(KeyStore.getDefaultType())
- key_store.load(None, None)
+ _key_store = KeyStore.getInstance(KeyStore.getDefaultType())
+ _key_store.load(None, None)
if cert_file is not None:
if not private_key:
from _socket import SSLError, SSL_ERROR_SSL
raise SSLError(SSL_ERROR_SSL, "No private key loaded")
- key_store.setKeyEntry(str(uuid.uuid4()), private_key, [], certs)
+ _key_store.setKeyEntry(str(uuid.uuid4()), private_key, [], certs)
kmf = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm())
- kmf.init(key_store, [])
+ kmf.init(_key_store, [])
return kmf
--
Repository URL: https://hg.python.org/jython
More information about the Jython-checkins
mailing list