Kaydet (Commit) 344ecdb2 authored tarafından Jack Jansen's avatar Jack Jansen

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

üst 8b7c3c0b
...@@ -42,7 +42,7 @@ from _socket import * ...@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment