]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] GH-120423: `pathname2url()`: handle forward slashes in Windows paths (GH-12659...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 12 Nov 2024 21:57:41 +0000 (22:57 +0100)
committerGitHub <noreply@github.com>
Tue, 12 Nov 2024 21:57:41 +0000 (21:57 +0000)
commit3dab1cebf7d306e01eb21b773891e7e69ed28688
tree9f220e52ebdf7dce3f0f3c9e85bdef435ef97c32
parent865f096f51bb7290eb10b33b330f387d245c2472
[3.13] GH-120423: `pathname2url()`: handle forward slashes in Windows paths (GH-126593) (#126764)

GH-120423: `pathname2url()`: handle forward slashes in Windows paths (GH-126593)

Adjust `urllib.request.pathname2url()` so that forward slashes in Windows
paths are handled identically to backward slashes.
(cherry picked from commit bf224bd7cef5d24eaff35945ebe7ffe14df7710f)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
Lib/nturl2path.py
Lib/test/test_urllib.py
Misc/NEWS.d/next/Library/2024-11-08-17-05-10.gh-issue-120423.7rdLVV.rst [new file with mode: 0644]