You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/tiran'closed_at=<Date2017-09-06.19:50:40.509>created_at=<Date2017-02-17.11:35:23.374>labels= ['expert-SSL', 'type-bug']
title="importing ssl can fail with NameError: name 'PROTOCOL_TLS' is not defined"updated_at=<Date2017-09-06.19:50:40.508>user='https://github.com/jdemeyer'
>>> 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.
The _ssl extension module always defines and exports PROTOCOL_TLS. The name is always available. I guess you somehow mixed a new ssl.py with an old _ssl.so. Please verify that _ssl is correct and defines the name.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: