mirror of https://github.com/python/cpython
Before comparing os.uname() to BeOS check that os.uname actually exists:-)
This commit is contained in:
parent
8b7c3c0be7
commit
344ecdb249
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue