commit | 344ecdb249c9e25010084fdecc21c17d2c725b82 | [log] [tgz] |
---|---|---|
author | Jack Jansen <jack.jansen@cwi.nl> | Fri Sep 15 12:59:46 2000 +0000 |
committer | Jack Jansen <jack.jansen@cwi.nl> | Fri Sep 15 12:59:46 2000 +0000 |
tree | de4ce4193c8ad10d9738280a29be2311f0938581 | |
parent | 8b7c3c0be7f51aef0026dc335d2e2f54535b4310 [diff] |
Before comparing os.uname() to BeOS check that os.uname actually exists:-)
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 @@ 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: