Skip to content

Commit 36cb03b

Browse files
LamentXU123picnixz
andauthored
Update Lib/http/cookiejar.py
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
1 parent e37015c commit 36cb03b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Lib/http/cookiejar.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -559,9 +559,7 @@ def is_ip_like_hostname(text):
559559
A valid IP-like hostname is either an IPv4 address or
560560
an IPv6 enclosed in brackets (for instance, "[::1]").
561561
"""
562-
if _is_ipv4_hostname(text) or _is_ipv6_hostname(text):
563-
return True
564-
return False
562+
return _is_ipv4_hostname(text) or _is_ipv6_hostname(text)
565563

566564
def is_HDN(text):
567565
"""Return True if text is a host domain name."""

0 commit comments

Comments
 (0)