Skip to content

Commit dd58cfe

Browse files
committed
Move description from last sentence to top
1 parent 21a9280 commit dd58cfe

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Doc/library/socket.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -965,14 +965,13 @@ The :mod:`socket` module also offers various network-related services:
965965

966966
.. function:: getfqdn([name])
967967

968-
Return a fully qualified domain name for *name*. If *name* is omitted or empty,
969-
it is interpreted as the local host (as returned by :func:`gethostname`).
968+
Return a fully qualified domain name for *name*. If *name* is empty or equal to
969+
``'0.0.0.0'``, the hostname from :func:`gethostname` is returned.
970970
To find the fully qualified name, the
971971
hostname returned by :func:`gethostbyaddr` is checked, followed by aliases for the
972972
host, if available. The first name which includes a period is selected. In
973973
case no fully qualified domain name is available and *name* was provided,
974-
it is returned unchanged. If *name* was empty or equal to ``'0.0.0.0'``,
975-
the hostname from :func:`gethostname` is returned.
974+
it is returned unchanged.
976975

977976

978977
.. function:: gethostbyname(hostname)

0 commit comments

Comments
 (0)