Antoine Pitrou <pit...@free.fr> added the comment:

Does this happen with a released build of OpenSSL? The Debian bug talks about 
experimental.

+try:
+    from _ssl import PROTOCOL_SSLv2
+    OPENSSL_NO_SSL2 = False
+except ImportError:
+    OPENSSL_NO_SSL2 = True

Please avoid "negative" constants. Calling it HAS_SSLv2 would be fine.

Also, there should be some doc update mentioning that PROTOCOL_SSLv2 is not 
always present.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12012>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to