[Python-checkins] python/dist/src/Lib socket.py,1.45,1.45.2.1

bcannon at users.sourceforge.net bcannon at users.sourceforge.net
Sat Mar 12 07:16:28 CET 2005


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21638/Lib

Modified Files:
      Tag: release24-maint
	socket.py 
Log Message:
Fix test_socket's test for socket.getfqdn() to also accept the result from
socket.gethostname() as a valid return value.

Also clarified the docs as they were a little hazy on the subject matter.


Index: socket.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/socket.py,v
retrieving revision 1.45
retrieving revision 1.45.2.1
diff -u -d -r1.45 -r1.45.2.1
--- socket.py	9 Aug 2004 04:51:40 -0000	1.45
+++ socket.py	12 Mar 2005 06:15:55 -0000	1.45.2.1
@@ -102,7 +102,7 @@
 
     First the hostname returned by gethostbyaddr() is checked, then
     possibly existing aliases. In case no FQDN is available, hostname
-    is returned.
+    as returned by gethostname() is returned.
     """
     name = name.strip()
     if not name or name == '0.0.0.0':



More information about the Python-checkins mailing list