Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Lib/socket.py with proper format
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
  • Loading branch information
YuriNek0 and corona10 authored Dec 21, 2022
commit 908cd68e4d0340809ca57fc33ae016aebeae319f
2 changes: 1 addition & 1 deletion Lib/socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ def getfqdn(name=''):
hostname from gethostname() is returned.
"""
name = name.strip()
if not name or name == '0.0.0.0' or name == '::':
if not name or name in ('0.0.0.0', '::'):
name = gethostname()
try:
hostname, aliases, ipaddrs = gethostbyaddr(name)
Expand Down