Skip to content

Commit

Permalink
use _ for unused var
Browse files Browse the repository at this point in the history
  • Loading branch information
bcail committed Nov 26, 2024
1 parent 9cb076e commit 735c797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/urllib/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ def _urlsplit(url, scheme=None, allow_fragments=True):
raise ValueError('Invalid IPv6 URL')
hostname, _, port = bracketed.partition(']')
_check_bracketed_host(hostname)
bracket_suffix, _, port = port.partition(':')
bracket_suffix, _, _ = port.partition(':')
if bracket_suffix:
raise ValueError('Invalid IPv6 URL')
if allow_fragments and '#' in url:
Expand Down

0 comments on commit 735c797

Please sign in to comment.