We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b0f228 commit 8f2c9c3Copy full SHA for 8f2c9c3
1 file changed
Lib/http/cookiejar.py
@@ -535,8 +535,8 @@ def parse_ns_headers(ns_headers):
535
# only kept for backwards compatibilty.
536
IPV4_RE = re.compile(r"\.\d+$", re.ASCII)
537
538
-def is_ip(text: str):
539
- """Return True if text is a valid IP address."""
+def is_ip_like(text: str):
+ """Return True if text is a valid hostname in the form of IP address."""
540
from ipaddress import IPv4Address, IPv6Address
541
# check for IPv4 address
542
try:
0 commit comments