You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pathname2url() does not work if path starts with // #127217
>>> from urllib.request import pathname2url
>>> 'file:'+ pathname2url('//foo/bar')
'file://foo/bar'
This is a file URI with path "/bar" and authority "foo". Non-empty authority other than "localhost" are usually rejected. The right URI for path "//foo/bar" is "file:////foo/bar" -- an URI with explicit empty authority.
Similar bug in urlunparse() and urlunsplit() was fixed in #67693.
Activity
pythongh-127217: Fix pathname2url() for paths starting with multiple …
pythongh-127217: Fix pathname2url() for paths starting with multiple …
gh-127217: Fix pathname2url() for paths starting with multiple slashe…
pythongh-127217: Fix pathname2url() for paths starting with multiple …
pythongh-127217: Fix pathname2url() for paths starting with multiple …
Improve news in light of pythonGH-127217
[3.12] gh-127217: Fix pathname2url() for paths starting with multiple…
[3.13] gh-127217: Fix pathname2url() for paths starting with multiple…
pythongh-127217: Fix pathname2url() for paths starting with multiple …