diff options
author | Barney Gale <barney.gale@gmail.com> | 2024-11-08 16:47:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-08 16:47:51 (GMT) |
commit | 54c63a32d06cb5f07a66245c375eac7d7efb964a (patch) | |
tree | ec77472893e2d8bb0b900d44d8e9fffcb26ccede /Misc/NEWS.d/next/Library | |
parent | fa4092259763ffad45a5bb9ef55f515dc6a69ad2 (diff) | |
download | cpython-54c63a32d06cb5f07a66245c375eac7d7efb964a.zip cpython-54c63a32d06cb5f07a66245c375eac7d7efb964a.tar.gz cpython-54c63a32d06cb5f07a66245c375eac7d7efb964a.tar.bz2 |
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.
Diffstat (limited to 'Misc/NEWS.d/next/Library')
-rw-r--r-- | Misc/NEWS.d/next/Library/2024-10-30-23-59-36.gh-issue-126212._9uYjT.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-10-30-23-59-36.gh-issue-126212._9uYjT.rst b/Misc/NEWS.d/next/Library/2024-10-30-23-59-36.gh-issue-126212._9uYjT.rst new file mode 100644 index 0000000..047fe0f --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-10-30-23-59-36.gh-issue-126212._9uYjT.rst @@ -0,0 +1,3 @@ +Fix issue where :func:`urllib.request.pathname2url` and +:func:`~urllib.request.url2pathname` removed slashes from Windows DOS drive +paths and URLs. |