diff options
Diffstat (limited to 'Lib/socket.py')
-rw-r--r-- | Lib/socket.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/socket.py b/Lib/socket.py index d2ac593..c460c5f 100644 --- a/Lib/socket.py +++ b/Lib/socket.py @@ -39,6 +39,10 @@ the setsockopt() and getsockopt() methods. """ from _socket import * +try: + from _ssl import * +except ImportError: + pass import os, sys @@ -56,7 +60,7 @@ if (sys.platform.lower().startswith("win") return _socketobject(_realsocketcall(family, type, proto)) try: - _realsslcall = _socket.ssl + _realsslcall = _ssl.ssl except AttributeError: pass # No ssl else: |