##// END OF EJS Templates
sslutil: use proper attribute to select python 3.7+...
Mathias De Mare -
r50277:eec5e00e default
parent child Browse files
Show More
@@ -312,7 +312,7 b' def wrapsocket(sock, keyfile, certfile, '
312 # is loaded and contains that removed CA, you've just undone the user's
312 # is loaded and contains that removed CA, you've just undone the user's
313 # choice.
313 # choice.
314
314
315 if util.safehasattr(ssl, 'PROTOCOL_TLS_CLIENT'):
315 if util.safehasattr(ssl, 'TLSVersion'):
316 # python 3.7+
316 # python 3.7+
317 sslcontext = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
317 sslcontext = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
318 minimumprotocol = settings[b'minimumprotocol']
318 minimumprotocol = settings[b'minimumprotocol']
General Comments 0
You need to be logged in to leave comments. Login now