FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GH-123599: Reject non-local authority in `pathlib.Path.from_uri()` on POSIX by barneygale · Pull Request #123650 · python/cpython · GitHub

/ cpython Public

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

Closed
barneygale wants to merge 5 commits into
python:mainfrom
barneygale:gh-123599-reject-non-local
Closed

GH-123599: Reject non-local authority in pathlib.Path.from_uri() on POSIX#123650
barneygale wants to merge 5 commits into
python:mainfrom
barneygale:gh-123599-reject-non-local

Conversation

barneygale commented Sep 3, 2024
edited by github-actions Bot
Loading

Copy link
Copy Markdown
Contributor

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 requested a review from AA-Turner October 21, 2024 15:15

Copy link
Copy Markdown
Contributor Author

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

barneygale marked this pull request as draft October 23, 2024 01:54

barneygale commented Mar 19, 2025
edited
Loading

Copy link
Copy Markdown
Contributor Author

Closing in favour of #126844

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL