Skip to content

Commit

Permalink
Run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Gallaecio committed Jun 12, 2024
1 parent acd7161 commit a4b444c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion tests/test_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -1386,7 +1386,8 @@ def test_domains_are_case_insensitive(self):

def test_userinfo_is_case_sensitive(self):
self.assertEqual(
canonicalize_url("sftp://UsEr:[email protected]/"), "sftp://UsEr:[email protected]/"
canonicalize_url("sftp://UsEr:[email protected]/"),
"sftp://UsEr:[email protected]/",
)

def test_canonicalize_idns(self):
Expand Down
4 changes: 1 addition & 3 deletions w3lib/url.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,9 +660,7 @@ def canonicalize_url(
netloc = "@".join(netloc_parts)

# every part should be safe already
return urlunparse(
(scheme, netloc, path, params, query, fragment)
)
return urlunparse((scheme, netloc, path, params, query, fragment))


def _unquotepath(path: str) -> bytes:
Expand Down

0 comments on commit a4b444c

Please sign in to comment.