]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-116377: Stop raising `ValueError` from `glob.translate()`. (#116378)
authorBarney Gale <barney.gale@gmail.com>
Sun, 17 Mar 2024 17:09:35 +0000 (17:09 +0000)
committerGitHub <noreply@github.com>
Sun, 17 Mar 2024 17:09:35 +0000 (17:09 +0000)
commit0634201f5391242524dbb5225de37f81a2cc1826
treea72c842a1dcab241fd7265cb86b9a8c7ee4a11e8
parent1cf03010865c66c2c3286ffdafd55e7ce2d97444
GH-116377: Stop raising `ValueError` from `glob.translate()`. (#116378)

Stop raising `ValueError` from `glob.translate()` when a `**` sub-string
appears in a non-recursive pattern segment. This matches `glob.glob()`
behaviour.
Doc/library/glob.rst
Lib/glob.py
Lib/test/test_glob.py
Lib/test/test_pathlib/test_pathlib_abc.py