From 344ecdb249c9e25010084fdecc21c17d2c725b82 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Fri, 15 Sep 2000 12:59:46 +0000 Subject: [PATCH] Before comparing os.uname() to BeOS check that os.uname actually exists:-) --- Lib/socket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/socket.py b/Lib/socket.py index e5180b5611..b28de1d39c 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: -- 2.40.0