Mercurial > cpython-lru_cache-weakref
diff Lib/socket.py @ 34739:0c82a7ef9554 2.4
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.
| author | Brett Cannon <bcannon@gmail.com> |
|---|---|
| date | Sat, 12 Mar 2005 06:15:56 +0000 |
| parents | 90da70986407 |
| children | 2cdf527b58f6 |
line wrap: on
line diff
--- a/Lib/socket.py Fri Mar 11 17:20:43 2005 +0000 +++ b/Lib/socket.py Sat Mar 12 06:15:56 2005 +0000 @@ -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. + as returned by gethostname() is returned. """ name = name.strip() if not name or name == '0.0.0.0':
