summaryrefslogtreecommitdiffstats
path: root/Lib/socket.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/socket.py')
-rw-r--r--Lib/socket.py16
1 files changed, 6 insertions, 10 deletions
diff --git a/Lib/socket.py b/Lib/socket.py
index b95c372..8e30ce0 100644
--- a/Lib/socket.py
+++ b/Lib/socket.py
@@ -65,16 +65,12 @@ if _have_ssl:
__all__.extend(os._get_exports_list(_ssl))
_realsocket = socket
-if (sys.platform.lower().startswith("win")
- or (hasattr(os, 'uname') and os.uname()[0] == "BeOS")
- or sys.platform=="riscos"):
-
- if _have_ssl:
- _realssl = ssl
- def ssl(sock, keyfile=None, certfile=None):
- if hasattr(sock, "_sock"):
- sock = sock._sock
- return _realssl(sock, keyfile, certfile)
+if _have_ssl:
+ _realssl = ssl
+ def ssl(sock, keyfile=None, certfile=None):
+ if hasattr(sock, "_sock"):
+ sock = sock._sock
+ return _realssl(sock, keyfile, certfile)
# WSA error codes
if sys.platform.lower().startswith("win"):