We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 853a593 commit f51b3caCopy full SHA for f51b3ca
src/pip/_internal/models/link.py
@@ -133,8 +133,8 @@ def _clean_file_url_path(part: str) -> str:
133
# exist, the colon should be quoted. We rely on urllib.request
134
# to do the right thing here.
135
ret = urllib.request.pathname2url(urllib.request.url2pathname(part))
136
- if sys.version_info >= (3, 14):
137
- # https://discuss.python.org/t/pathname2url-changes-in-python-3-14-breaking-pip-tests/97091
+ if ret.startswith("///"):
+ # Remove authority section from URL.
138
ret = ret.removeprefix("//")
139
return ret
140
0 commit comments