forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythonGH-123599: Reject non-local authority in `pathlib.Path.from_uri…
…()` 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.
- Loading branch information
1 parent
68fe575
commit 0cee0c4
Showing
4 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
3 changes: 3 additions & 0 deletions
3
Misc/NEWS.d/next/Library/2024-09-03-19-36-33.gh-issue-123599.TzDIha.rst
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Fix issue where :meth:`pathlib.Path.from_uri` accepted URIs with non-local | ||
authorities on POSIX. This method now raises `ValueError` when given a URI | ||
like ``file://server/share`` on a non-Windows system. |