diff --git a/src/pip/_internal/models/link.py b/src/pip/_internal/models/link.py index c1c5511137e..811b9e6516b 100644 --- a/src/pip/_internal/models/link.py +++ b/src/pip/_internal/models/link.py @@ -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://")):