Skip to content

Commit 5515ca2

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

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

yarl/_url.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1579,9 +1579,7 @@ def _encode_host(host: str, validate_host: bool) -> str:
15791579
pass
15801580
else:
15811581
if sep and validate_host and not _ZONE_ID_RE.match(zone):
1582-
raise ValueError(
1583-
f"Invalid characters in IPv6 zone ID: {zone!r}"
1584-
)
1582+
raise ValueError(f"Invalid characters in IPv6 zone ID: {zone!r}")
15851583
# These checks should not happen in the
15861584
# LRU to keep the cache size small
15871585
host = ip.compressed

0 commit comments

Comments
 (0)