[issue29588] importing ssl can fail with NameError: name 'PROTOCOL_TLS' is not defined

2017-09-06 Thread Christian Heimes
Changes by Christian Heimes : -- resolution: -> works for me stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker ___ ___

[issue29588] importing ssl can fail with NameError: name 'PROTOCOL_TLS' is not defined

2017-02-17 Thread Christian Heimes
Christian Heimes added the comment: 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. --

[issue29588] importing ssl can fail with NameError: name 'PROTOCOL_TLS' is not defined

2017-02-17 Thread Jeroen Demeyer
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 "", line 1, in File "/Users/jdemeyer/sage/local/lib/python/ssl.py", line 133, in PROTOCOL_SSLv23 = PROTOC