]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] 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:53:58 +0000 (22:53 +0100)
committerGitHub <noreply@github.com>
Tue, 12 Nov 2024 21:53:58 +0000 (21:53 +0000)
commit361dda59a3a73e4bd2b6498d16dcc22195670d1d
tree99b5cc7cde781a4c70105d32d13b2bef0c377497
parent46710ca5f263936a2e36fa5d0f140cf9f50b2618
[3.12] GH-120423: `pathname2url()`: handle forward slashes in Windows paths (GH-126593) (#126763)

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]