Skip to content

Commit 267d499

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

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
@@ -545,7 +545,7 @@ def is_ip_like_hostname(text):
545545
# check for IPv6 address in []
546546
if text.startswith('[') and text.endswith(']'):
547547
try:
548-
IPv6Address(text.removeprefix('[').removesuffix(']'))
548+
IPv6Address(text[1:-1])
549549
except ValueError:
550550
return False
551551
else:

0 commit comments

Comments
 (0)