]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-70303: Emit FutureWarning when pathlib glob pattern ends with `**` (GH-105413)
authorBarney Gale <barney.gale@gmail.com>
Fri, 4 Aug 2023 23:12:12 +0000 (00:12 +0100)
committerGitHub <noreply@github.com>
Fri, 4 Aug 2023 23:12:12 +0000 (23:12 +0000)
commitec0a0d2bd9faa247d5b3208a8138e4399b2da890
treefdb578d6b96b11a174382dd202df84d50289eae7
parent2c25bd82f46df72c89ca5bca10eaa06137ab8290
GH-70303: Emit FutureWarning when pathlib glob pattern ends with `**` (GH-105413)

In a future Python release, patterns with this ending will match both files
and directories. Users may add a trailing slash to remove the warning.
Doc/library/pathlib.rst
Lib/pathlib.py
Lib/test/test_pathlib.py
Misc/NEWS.d/next/Library/2023-06-07-00-13-00.gh-issue-70303.frwUKH.rst [new file with mode: 0644]