summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2005-03-11 00:04:17 (GMT)
committerBrett Cannon <bcannon@gmail.com>2005-03-11 00:04:17 (GMT)
commit01668a1ab93baacd3c68f8b0b3b0ca6d43f0f444 (patch)
tree62d596a9ce52ca561ab06516a8c293c2cc7095c0 /Doc
parent94d6201eb066fc769786f0c52ffc859fc6169d50 (diff)
downloadcpython-01668a1ab93baacd3c68f8b0b3b0ca6d43f0f444.zip
cpython-01668a1ab93baacd3c68f8b0b3b0ca6d43f0f444.tar.gz
cpython-01668a1ab93baacd3c68f8b0b3b0ca6d43f0f444.tar.bz2
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.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libsocket.tex4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/lib/libsocket.tex b/Doc/lib/libsocket.tex
index db0b767..1f5bcaa 100644
--- a/Doc/lib/libsocket.tex
+++ b/Doc/lib/libsocket.tex
@@ -202,8 +202,8 @@ If \var{name} is omitted or empty, it is interpreted as the local
host. To find the fully qualified name, the hostname returned by
\function{gethostbyaddr()} is checked, then aliases for the host, if
available. The first name which includes a period is selected. In
-case no fully qualified domain name is available, the hostname is
-returned.
+case no fully qualified domain name is available, the hostname as
+returned by \function{gethostname()} is returned.
\versionadded{2.0}
\end{funcdesc}