diff Lib/socket.py @ 14592:90f0789d57b7 legacy-trunk

Before comparing os.uname() to BeOS check that os.uname actually exists:-)
author Jack Jansen <jack.jansen@cwi.nl>
date Fri, 15 Sep 2000 12:59:46 +0000
parents 3d68d5bccd40
children 295126433856
line wrap: on
line diff
--- a/Lib/socket.py	Fri Sep 15 12:58:08 2000 +0000
+++ b/Lib/socket.py	Fri Sep 15 12:59:46 2000 +0000
@@ -42,7 +42,7 @@
 import os, sys
 
 if (sys.platform.lower().startswith("win")
-    or os.uname()[0] == "BeOS"):
+    or (hasattr(os, 'uname') and os.uname()[0] == "BeOS")):
 
     # be sure this happens only once, even in the face of reload():
     try: