Thanks to visit codestin.com
Credit goes to github.com

Skip to content

GH-123599: Reject non-local authority in pathlib.Path.from_uri() on POSIX #123650

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

Closed
wants to merge 5 commits into from

Conversation

barneygale
Copy link
Contributor

@barneygale barneygale commented Sep 3, 2024

Raise ValueError in pathlib.Path.from_uri() if the given file: URI specifies a non-empty, non-localhost authority, and we're running on a platform without support for UNC paths.


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

…()` on POSIX

Raise `ValueError` in `pathlib.Path.from_uri()` if the given `file:` URI
specifies a non-empty, non-`localhost` authority, and we're running on a
platform without support for UNC paths.
@barneygale barneygale requested a review from AA-Turner October 21, 2024 15:15
@barneygale
Copy link
Contributor Author

In fact, I might implement this by making urllib.request.pathname2url() and url2pathname() less awful. Marking as a draft...

@barneygale barneygale marked this pull request as draft October 23, 2024 01:54
@barneygale
Copy link
Contributor Author

barneygale commented Mar 19, 2025

Closing in favour of #126844

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant