]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-123599: Deprecate duplicate `pathname2url()` implementation (#127380)
authorBarney Gale <barney.gale@gmail.com>
Thu, 20 Mar 2025 00:54:36 +0000 (00:54 +0000)
committerGitHub <noreply@github.com>
Thu, 20 Mar 2025 00:54:36 +0000 (00:54 +0000)
commitf141e8ec2a2e8d21fc08c1f56ef40104c7a7fad2
tree93471124170354b334de356739ccb48179b5ab0a
parent6c776abb90be09d2b9e53d9b06b56a2e7004b57c
GH-123599: Deprecate duplicate `pathname2url()` implementation (#127380)

Call `urllib.request.pathname2url()` from `pathlib.Path.as_uri()`, and
deprecate the duplicate implementation in `PurePath`.

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Doc/library/pathlib.rst
Doc/whatsnew/3.14.rst
Lib/pathlib/__init__.py
Lib/test/test_pathlib/test_pathlib.py
Misc/NEWS.d/next/Library/2024-11-29-00-53-28.gh-issue-123599.vyUh2S.rst [new file with mode: 0644]