]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-120423: `pathname2url()`: handle forward slashes in Windows paths (#126593)
authorBarney Gale <barney.gale@gmail.com>
Tue, 12 Nov 2024 19:52:30 +0000 (19:52 +0000)
committerGitHub <noreply@github.com>
Tue, 12 Nov 2024 19:52:30 +0000 (19:52 +0000)
commitbf224bd7cef5d24eaff35945ebe7ffe14df7710f
tree0fedcebce61343cc6061ad3f0ed53abea8aafc6c
parent7577307ebdaeef6702b639e22a896080e81aae4e
GH-120423: `pathname2url()`: handle forward slashes in Windows paths (#126593)

Adjust `urllib.request.pathname2url()` so that forward slashes in Windows
paths are handled identically to backward slashes.
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]