]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-126601: `pathname2url()`: handle NTFS alternate data streams (#126760)
authorBarney Gale <barney.gale@gmail.com>
Fri, 22 Nov 2024 00:29:05 +0000 (00:29 +0000)
committerGitHub <noreply@github.com>
Fri, 22 Nov 2024 00:29:05 +0000 (00:29 +0000)
commitfd133d4f21cd7f5cbf6bcf332290ce52e5501167
treef7d9aaa889d138dbb1a303f9c411f90acdda0c86
parente8bb05394164e7735f7a9de80a046953606a38eb
GH-126601: `pathname2url()`: handle NTFS alternate data streams (#126760)

Adjust `pathname2url()` to encode embedded colon characters in Windows
paths, rather than bailing out with an `OSError`.

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
Doc/library/urllib.request.rst
Lib/nturl2path.py
Lib/test/test_urllib.py
Misc/NEWS.d/next/Library/2024-11-12-20-05-09.gh-issue-126601.Nj7bA9.rst [new file with mode: 0644]