[Python-checkins] CVS: python/dist/src/Lib socket.py,1.2,1.3

Jack Jansen python-dev@python.org
Fri, 15 Sep 2000 05:59:49 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv22785

Modified Files:
	socket.py 
Log Message:
Before comparing os.uname() to BeOS check that os.uname actually exists:-)


Index: socket.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/socket.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** socket.py	2000/08/16 20:30:21	1.2
--- socket.py	2000/09/15 12:59:46	1.3
***************
*** 43,47 ****
  
  if (sys.platform.lower().startswith("win")
!     or os.uname()[0] == "BeOS"):
  
      # be sure this happens only once, even in the face of reload():
--- 43,47 ----
  
  if (sys.platform.lower().startswith("win")
!     or (hasattr(os, 'uname') and os.uname()[0] == "BeOS")):
  
      # be sure this happens only once, even in the face of reload():