Skip to content

Commit a4b444c

Browse files
committed
Run pre-commit
1 parent acd7161 commit a4b444c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

tests/test_url.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1386,7 +1386,8 @@ def test_domains_are_case_insensitive(self):
13861386

13871387
def test_userinfo_is_case_sensitive(self):
13881388
self.assertEqual(
1389-
canonicalize_url("sftp://UsEr:PaSsWoRd@www.EXAMPLE.com/"), "sftp://UsEr:PaSsWoRd@www.example.com/"
1389+
canonicalize_url("sftp://UsEr:PaSsWoRd@www.EXAMPLE.com/"),
1390+
"sftp://UsEr:PaSsWoRd@www.example.com/",
13901391
)
13911392

13921393
def test_canonicalize_idns(self):

w3lib/url.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -660,9 +660,7 @@ def canonicalize_url(
660660
netloc = "@".join(netloc_parts)
661661

662662
# every part should be safe already
663-
return urlunparse(
664-
(scheme, netloc, path, params, query, fragment)
665-
)
663+
return urlunparse((scheme, netloc, path, params, query, fragment))
666664

667665

668666
def _unquotepath(path: str) -> bytes:

0 commit comments

Comments
 (0)