diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2024-08-31 09:42:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-31 09:42:08 (GMT) |
commit | fc897fcc01964649f023e0baa4c95d142e4e8a10 (patch) | |
tree | 225e7086273594100c09c34c09d03f8291911024 /Python/dup2.c | |
parent | e5a567b0a721c26c79530249d9aa159afbd11955 (diff) | |
download | cpython-fc897fcc01964649f023e0baa4c95d142e4e8a10.zip cpython-fc897fcc01964649f023e0baa4c95d142e4e8a10.tar.gz cpython-fc897fcc01964649f023e0baa4c95d142e4e8a10.tar.bz2 |
gh-76960: Fix urljoin() and urldefrag() for URIs with empty components (GH-123273)
* urljoin() with relative reference "?" sets empty query and removes fragment.
* Preserve empty components (authority, params, query, fragment) in urljoin().
* Preserve empty components (authority, params, query) in urldefrag().
Also refactor the code and get rid of double _coerce_args() and
_coerce_result() calls in urljoin(), urldefrag(), urlparse() and
urlunparse().
Diffstat (limited to 'Python/dup2.c')
0 files changed, 0 insertions, 0 deletions