diff options
author | Barney Gale <barney.gale@gmail.com> | 2024-11-22 00:29:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-22 00:29:05 (GMT) |
commit | fd133d4f21cd7f5cbf6bcf332290ce52e5501167 (patch) | |
tree | f7d9aaa889d138dbb1a303f9c411f90acdda0c86 /Doc/library/urllib.request.rst | |
parent | e8bb05394164e7735f7a9de80a046953606a38eb (diff) | |
download | cpython-fd133d4f21cd7f5cbf6bcf332290ce52e5501167.zip cpython-fd133d4f21cd7f5cbf6bcf332290ce52e5501167.tar.gz cpython-fd133d4f21cd7f5cbf6bcf332290ce52e5501167.tar.bz2 |
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>
Diffstat (limited to 'Doc/library/urllib.request.rst')
-rw-r--r-- | Doc/library/urllib.request.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst index cdd58b8..e0831bf 100644 --- a/Doc/library/urllib.request.rst +++ b/Doc/library/urllib.request.rst @@ -152,6 +152,11 @@ The :mod:`urllib.request` module defines the following functions: the path component of a URL. This does not produce a complete URL. The return value will already be quoted using the :func:`~urllib.parse.quote` function. + .. versionchanged:: 3.14 + On Windows, ``:`` characters not following a drive letter are quoted. In + previous versions, :exc:`OSError` was raised if a colon character was + found in any position other than the second character. + .. function:: url2pathname(path) |