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.
… separators Make `PurePosixPath(PureWindowsPath(...))` emit a `FutureWarning` indicating that implicit conversion of backward slashes to forward slashes will cease in a future Python release. This feature isn't documented, and it wasn't tested until I accidentally broke it a couple of releases ago!
- Loading branch information
1 parent
34653bb
commit 5054b5f
Showing
3 changed files
with
22 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
6 changes: 6 additions & 0 deletions
6
Misc/NEWS.d/next/Library/2024-10-23-01-26-04.gh-issue-125012.uy3tPa.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,6 @@ | ||
``pathlib.PurePosixPath(pathlib.PureWindowsPath(...))`` now emits a | ||
:exc:`FutureWarning` indicating that implicit conversion of backward slashes | ||
to forward slashes will cease in a future Python release. Use | ||
``PurePosixPath(PureWindowsPath(...).as_posix())`` to explicitly convert | ||
Windows path separators to POSIX path separators when converting between | ||
path flavours. |