[issue29588] importing ssl can fail with NameError: name 'PROTOCOL_TLS' is not defined
Jeroen Demeyer
report at bugs.python.org
Fri Feb 17 06:35:23 EST 2017
New submission from Jeroen Demeyer:
This is a regression introduced in Python 2.7.13:
Importing the ssl module can fail with
>>> import ssl
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/jdemeyer/sage/local/lib/python/ssl.py", line 133, in <module>
PROTOCOL_SSLv23 = PROTOCOL_TLS
NameError: name 'PROTOCOL_TLS' is not defined
While getting an ImportError from the ssl module is expected if SSL is not available (httplib for example handles that fine), a NameError is not.
----------
assignee: christian.heimes
components: SSL
messages: 287989
nosy: christian.heimes, jdemeyer
priority: normal
severity: normal
status: open
title: importing ssl can fail with NameError: name 'PROTOCOL_TLS' is not defined
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29588>
_______________________________________
More information about the Python-bugs-list
mailing list