]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-22276: Change pathlib.Path.glob not to ignore trailing path separator (GH-10349)
authorEisuke Kawashima <e-kwsm@users.noreply.github.com>
Thu, 28 Apr 2022 19:45:03 +0000 (04:45 +0900)
committerGitHub <noreply@github.com>
Thu, 28 Apr 2022 19:45:03 +0000 (12:45 -0700)
commitea2f5bcda1a392804487e6883be89fbad38a01a5
tree9aa400b03250297948bce5eede3d13075f15fad9
parent0ef8d921f5c6945aa8f386e472c4110b81ac773d
bpo-22276: Change pathlib.Path.glob not to ignore trailing path separator (GH-10349)

Now pathlib.Path.glob() **only** matches directories when the pattern ends in a path separator.

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Doc/library/pathlib.rst
Doc/whatsnew/3.11.rst
Lib/pathlib.py
Lib/test/test_pathlib.py
Misc/NEWS.d/next/Library/2018-11-11-04-41-11.bpo-22276.Tt19TW.rst [new file with mode: 0644]