Skip to content

Commit 2aac70f

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/http/cookiejar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ def parse_ns_headers(ns_headers):
535535
# only kept for backwards compatibilty.
536536
IPV4_RE = re.compile(r"\.\d+$", re.ASCII)
537537

538-
def is_ip_like_hostname(text: str):
538+
def is_ip_like_hostname(text):
539539
"""Return True if text is a valid hostname in the form of IP address."""
540540
from ipaddress import IPv4Address, IPv6Address
541541
# check for IPv4 address

0 commit comments

Comments
 (0)