]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] GH-136874: `url2pathname()`: discard query and fragment components (GH-136875...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 21 Jul 2025 18:08:07 +0000 (20:08 +0200)
committerGitHub <noreply@github.com>
Mon, 21 Jul 2025 18:08:07 +0000 (19:08 +0100)
commit81edfb7140074bac3407c175664281e7aaad046a
tree81f9a73f89652eac696112a605170bf6fe1fa593
parentaa17c393397fe582f22d3c449b2dff84ba881537
[3.14] GH-136874: `url2pathname()`: discard query and fragment components (GH-136875) (#136942)

GH-136874: `url2pathname()`: discard query and fragment components (GH-136875)

In `urllib.request.url2pathname()`, ignore any query or fragment components
in the given URL.
(cherry picked from commit 80b2d60a51cfd824d025eb8b3ec500acce5c010c)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
Doc/library/urllib.request.rst
Doc/whatsnew/3.14.rst
Lib/test/test_urllib.py
Lib/urllib/request.py
Misc/NEWS.d/next/Library/2025-07-20-16-02-00.gh-issue-136874.cLC3o1.rst [new file with mode: 0644]