]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-127078: `url2pathname()`: handle extra slash before UNC drive in URL path (#127132)
authorBarney Gale <barney.gale@gmail.com>
Fri, 22 Nov 2024 04:12:50 +0000 (04:12 +0000)
committerGitHub <noreply@github.com>
Fri, 22 Nov 2024 04:12:50 +0000 (04:12 +0000)
commit8c98ed846a7d7e50c4cf06f823d94737144dcf6a
treeba5e770bbeffb7b320c15219972917a01a58af26
parentebf564a1d3e2e81b9846535114e481d6096443d2
GH-127078: `url2pathname()`: handle extra slash before UNC drive in URL path (#127132)

Decode a file URI like `file://///server/share` as a UNC path like
`\\server\share`. This form of file URI is created by software the simply
prepends `file:///` to any absolute Windows path.
Lib/nturl2path.py
Lib/test/test_urllib.py
Misc/NEWS.d/next/Library/2024-11-22-03-40-02.gh-issue-127078.gI_PaP.rst [new file with mode: 0644]