summaryrefslogtreecommitdiffstats
path: root/Lib/socket.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2005-03-12 06:15:56 (GMT)
committerBrett Cannon <bcannon@gmail.com>2005-03-12 06:15:56 (GMT)
commite3fa0611a99d101ffa459221fa3a44f4110834b5 (patch)
tree08a200996928dc123e59d96cb86e352b88c3ce50 /Lib/socket.py
parentc13c04007d9ab67c5f0dad3486469085fe35c1b2 (diff)
downloadcpython-e3fa0611a99d101ffa459221fa3a44f4110834b5.zip
cpython-e3fa0611a99d101ffa459221fa3a44f4110834b5.tar.gz
cpython-e3fa0611a99d101ffa459221fa3a44f4110834b5.tar.bz2
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.
Diffstat (limited to 'Lib/socket.py')
-rw-r--r--Lib/socket.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/socket.py b/Lib/socket.py
index f96a146..5fd51f4 100644
--- a/Lib/socket.py
+++ b/Lib/socket.py
@@ -102,7 +102,7 @@ def getfqdn(name=''):
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':