]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-123599: Remove duplicate `url2pathname()` implementation (#127237)
authorBarney Gale <barney.gale@gmail.com>
Wed, 19 Mar 2025 21:08:32 +0000 (21:08 +0000)
committerGitHub <noreply@github.com>
Wed, 19 Mar 2025 21:08:32 +0000 (21:08 +0000)
commit63b5aed06ed6fcd7956c9b99eb0a3651116cf2e4
treee2450e7da3951d0958f68b939cb30c5d51761b25
parent75103d975c33ab46f6eb64169eabfe68d806d7c5
GH-123599: Remove duplicate `url2pathname()` implementation (#127237)

Call `urllib.request.url2pathname()` from `pathlib.Path.from_uri()` rather
than re-implementing it. This paves the way for solving the main issue
(ignoring local authorities and rejecting non-local ones) in urllib, not
pathlib.
Lib/pathlib/__init__.py