diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2000-09-15 12:59:46 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2000-09-15 12:59:46 (GMT) |
commit | 344ecdb249c9e25010084fdecc21c17d2c725b82 (patch) | |
tree | de4ce4193c8ad10d9738280a29be2311f0938581 /Lib | |
parent | 8b7c3c0be7f51aef0026dc335d2e2f54535b4310 (diff) | |
download | cpython-344ecdb249c9e25010084fdecc21c17d2c725b82.zip cpython-344ecdb249c9e25010084fdecc21c17d2c725b82.tar.gz cpython-344ecdb249c9e25010084fdecc21c17d2c725b82.tar.bz2 |
Before comparing os.uname() to BeOS check that os.uname actually exists:-)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/socket.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/socket.py b/Lib/socket.py index e5180b5..b28de1d 100644 --- a/Lib/socket.py +++ b/Lib/socket.py @@ -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: |