mirror of
https://github.com/python/cpython.git
synced 2025-07-31 07:04:42 +00:00
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.
This commit is contained in:
parent
94d6201eb0
commit
01668a1ab9
3 changed files with 4 additions and 4 deletions
|
@ -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}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue