]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-137059: `url2pathname()`: fix support for drive letter in netloc (#137060)
authorBarney Gale <barney.gale@gmail.com>
Sun, 27 Jul 2025 11:44:41 +0000 (12:44 +0100)
committerGitHub <noreply@github.com>
Sun, 27 Jul 2025 11:44:41 +0000 (11:44 +0000)
commit10a925c86db4cbcb9324c7269f69f813d3e7ed79
tree87b60176bb7cb41672262764c759002b8fdd7107
parentae8b7d710020dfd336edd399fa35525dfe8fc049
GH-137059: `url2pathname()`: fix support for drive letter in netloc (#137060)

Support file URLs like `file://c:/foo` in `urllib.request.url2pathname()`
on Windows. This restores behaviour from 3.13.
Lib/test/test_urllib.py
Lib/urllib/request.py
Misc/NEWS.d/next/Library/2025-07-24-00-38-07.gh-issue-137059.fr64oW.rst [new file with mode: 0644]