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

bcannon at users.sourceforge.net bcannon at users.sourceforge.net
Fri Mar 11 01:04:20 CET 2005


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

Modified Files:
	socket.py 
Log Message:
Fix test for socket.getfqdn() to also include the name returned by
socket.gethostname() in the check for a valid return.

Also clarified docs (official and docstring) that the value from gethostname()
is returned if gethostbyaddr() doesn't do the job.


Index: socket.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/socket.py,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- socket.py	9 Aug 2004 04:51:40 -0000	1.45
+++ socket.py	11 Mar 2005 00:04:16 -0000	1.46
@@ -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.
+    from gethostname() is returned.
     """
     name = name.strip()
     if not name or name == '0.0.0.0':



More information about the Python-checkins mailing list