Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Stéphane Bidoul <[email protected]>
  • Loading branch information
ichard26 and sbidoul authored Jan 4, 2025
1 parent 66e5e73 commit 11e3065
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pip/_internal/models/link.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ def _ensure_quoted_url(url: str) -> str:
return urllib.parse.urlunsplit(result._replace(path=path))


def _absolute_link_url(base_url: str, file_url: str) -> str:
def _absolute_link_url(base_url: str, url: str) -> str:
"""
A faster implementation of urlib.parse.urljoin with a shortcut
A faster implementation of urllib.parse.urljoin with a shortcut
for absolute http/https URLs.
"""
if file_url.startswith(("https://", "http://")):
Expand Down

0 comments on commit 11e3065

Please sign in to comment.