]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-125866: Preserve Windows drive letter case in file URIs (#127138)
authorBarney Gale <barney.gale@gmail.com>
Sat, 23 Nov 2024 10:41:39 +0000 (10:41 +0000)
committerGitHub <noreply@github.com>
Sat, 23 Nov 2024 10:41:39 +0000 (10:41 +0000)
commitcc813e10ff190af38b8429d0d49fb9249493d504
tree249d31c6fda7061ff11524c551511a11112992c3
parenta13e94d84bff334da3da2cab523ba75b57e0787f
GH-125866: Preserve Windows drive letter case in file URIs (#127138)

Stop converting Windows drive letters to uppercase in
`urllib.request.pathname2url()` and `url2pathname()`. This behaviour is
unnecessary and inconsistent with pathlib's file URI implementation.
Doc/library/urllib.request.rst
Lib/nturl2path.py
Lib/test/test_urllib.py
Misc/NEWS.d/next/Library/2024-11-22-04-49-31.gh-issue-125866.TUtvPK.rst [new file with mode: 0644]