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 <[email protected]>
<http://bugs.python.org/issue29588>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com