summaryrefslogtreecommitdiffstats
path: root/Python/dup2.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2024-08-31 09:42:08 (GMT)
committerGitHub <noreply@github.com>2024-08-31 09:42:08 (GMT)
commitfc897fcc01964649f023e0baa4c95d142e4e8a10 (patch)
tree225e7086273594100c09c34c09d03f8291911024 /Python/dup2.c
parente5a567b0a721c26c79530249d9aa159afbd11955 (diff)
downloadcpython-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