Skip to content

Commit 2195606

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 702ae36 commit 2195606

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

yarl/_parse.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ def split_url(url: str) -> SplitURLType:
6363
has_right_bracket and not has_left_bracket
6464
):
6565
raise ValueError("Invalid IPv6 URL")
66-
if has_left_bracket and (
67-
netloc.count("[") != 1 or netloc.count("]") != 1
68-
):
66+
if has_left_bracket and (netloc.count("[") != 1 or netloc.count("]") != 1):
6967
raise ValueError("Invalid IPv6 URL")
7068
if has_left_bracket:
7169
bracketed_host = netloc.partition("[")[2].partition("]")[0]

0 commit comments

Comments
 (0)