Before comparing os.uname() to BeOS check that os.uname actually exists:-)

This commit is contained in:
Jack Jansen 2000-09-15 12:59:46 +00:00
parent 8b7c3c0be7
commit 344ecdb249

View file

@ -42,7 +42,7 @@ from _socket import *
import os, sys import os, sys
if (sys.platform.lower().startswith("win") 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(): # be sure this happens only once, even in the face of reload():
try: try: