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
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ from _socket import *
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: