-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
GH-123599: Deprecate duplicate pathname2url()
implementation
#127380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Call `urllib.request.pathname2url()` from `pathlib.Path.as_uri()`, and deprecate the duplicate implementation in `PurePath`.
Co-authored-by: Adam Turner <[email protected]>
There was a problem hiding this comment.
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
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. |
Et voilà: #126844 (review) A |
…ython#127380) Call `urllib.request.pathname2url()` from `pathlib.Path.as_uri()`, and deprecate the duplicate implementation in `PurePath`. Co-authored-by: Adam Turner <[email protected]>
Call
urllib.request.pathname2url()
frompathlib.Path.as_uri()
, and deprecate the duplicate implementation inPurePath
.Path.from_uri()
doesn't work if the URI contains host component #123599📚 Documentation preview 📚: https://cpython-previews--127380.org.readthedocs.build/