]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-126212: Fix removal of slashes in file URIs on Windows (#126214)
authorBarney Gale <barney.gale@gmail.com>
Fri, 8 Nov 2024 16:47:51 +0000 (16:47 +0000)
committerGitHub <noreply@github.com>
Fri, 8 Nov 2024 16:47:51 +0000 (16:47 +0000)
commit54c63a32d06cb5f07a66245c375eac7d7efb964a
treeec77472893e2d8bb0b900d44d8e9fffcb26ccede
parentfa4092259763ffad45a5bb9ef55f515dc6a69ad2
GH-126212: Fix removal of slashes in file URIs on Windows (#126214)

Adjust `urllib.request.pathname2url()` and `url2pathname()` so that they
don't remove slashes from Windows DOS drive paths and URLs. There was no
basis for this behaviour, and it conflicts with how UNC and POSIX paths are
handled.
Lib/nturl2path.py
Lib/test/test_urllib.py
Misc/NEWS.d/next/Library/2024-10-30-23-59-36.gh-issue-126212._9uYjT.rst [new file with mode: 0644]