Skip to content

GH-123599: Deprecate duplicate pathname2url() implementation - #127380

Merged
barneygale merged 5 commits into
python:mainfrom
barneygale:gh-123599-use-urllib-2
Mar 20, 2025
Merged

barneygale merged 5 commits into
python:mainfrom
barneygale:gh-123599-use-urllib-2

Conversation

@barneygale

@barneygale barneygale commented Nov 29, 2024 •

Copy link
Copy Markdown
Contributor

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


📚 Documentation preview 📚: https://cpython-previews--127380.org.readthedocs.build/

Call `urllib.request.pathname2url()` from `pathlib.Path.as_uri()`, and
deprecate the duplicate implementation in `PurePath`.
Comment thread Lib/pathlib/_local.py Resolved
Comment thread Lib/pathlib/__init__.py Resolved
Comment thread Lib/pathlib/__init__.py Resolved
Comment thread Lib/pathlib/__init__.py Resolved
Comment thread Lib/pathlib/__init__.py Resolved
barneygale and others added 2 commits March 20, 2025 00:08
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>

@AA-Turner AA-Turner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Sorry for missing this PR initially, I only spotted it when you closed the other PR earlier today.

A

Comment thread Doc/library/pathlib.rst Resolved
@barneygale

barneygale commented Mar 20, 2025 •

Copy link
Copy Markdown
Contributor Author

No worries, and thanks very much for the review!

Embarrassingly I actually linked the wrong PR from my comment in #123650 😅. I've edited it now.

@barneygale
barneygale merged commit f141e8e into python:main Mar 20, 2025
@AA-Turner

Copy link
Copy Markdown
Member

Embarrassingly I actually linked the wrong PR from my comment in #123650 😅.

Et voilà: #126844 (review)

A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants