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.
Revert "Fix handling of patterns ending
**
"
This reverts commit d1a1716.
- Loading branch information
1 parent
91bbce1
commit 0566137
Showing
4 changed files
with
31 additions
and
12 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
7 changes: 4 additions & 3 deletions
7
Misc/NEWS.d/next/Library/2023-06-07-00-13-00.gh-issue-70303.frwUKH.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
:meth:`pathlib.Path.glob` and :meth:`~pathlib.Path.rglob` now yield files and | ||
directories when expanding a pattern that ends with "``**``". In a earlier | ||
Python releases, patterns with this ending match only directories. | ||
Emit :exc:`FutureWarning` from :meth:`pathlib.Path.glob` and | ||
:meth:`~pathlib.Path.rglob` if the given pattern ends with "``**``". In a | ||
future Python release, patterns with this ending will match both files and | ||
directories. Add a trailing slash to match only directories. |