]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] GH-127078: `url2pathname()`: handle extra slash before UNC drive in URL path...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 22 Nov 2024 04:37:30 +0000 (05:37 +0100)
committerGitHub <noreply@github.com>
Fri, 22 Nov 2024 04:37:30 +0000 (04:37 +0000)
commit7bbcd32e59ab9b47c0f9e436eabb19fd0b957d63
tree9e6d450cc80ccd91f09023fe59bb003dc5823fc9
parent4b9068eeea18f6488cd2213a21b3e9527642b6c8
[3.13] GH-127078: `url2pathname()`: handle extra slash before UNC drive in URL path (GH-127132) (#127135)

GH-127078: `url2pathname()`: handle extra slash before UNC drive in URL path (GH-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.
(cherry picked from commit 8c98ed846a7d7e50c4cf06f823d94737144dcf6a)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
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]