Skip to content

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