Skip to content

Commit e553fe8

Browse files
LamentXU123picnixz
andauthored
Update Lib/http/cookiejar.py
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent dd04e81 commit e553fe8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/http/cookiejar.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,9 @@ def parse_ns_headers(ns_headers):
532532
return result
533533

534534

535-
IPV4_RE = re.compile(r"\.\d+$", re.ASCII) # kept for backwards compatibility
535+
# only kept for backwards compatibilty.
536+
IPV4_RE = re.compile(r"\.\d+$", re.ASCII)
537+
536538
def is_ip(text: str):
537539
"""Return True if text is a valid IP address."""
538540
from ipaddress import ip_address

0 commit comments

Comments
 (0)