]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-128520: pathlib ABCs: reject empty pattern in `ReadablePath.glob()` (#127343)
authorBarney Gale <barney.gale@gmail.com>
Mon, 24 Mar 2025 15:12:29 +0000 (15:12 +0000)
committerGitHub <noreply@github.com>
Mon, 24 Mar 2025 15:12:29 +0000 (15:12 +0000)
commitfbfb0e1f6efae7055f7420c999ad6256e10d6b62
tree30ef528f991bad777eea08438378793eeed94117
parenta04c0a9658237d536a68e745d1efd157ab87ec9c
GH-128520: pathlib ABCs: reject empty pattern in `ReadablePath.glob()` (#127343)

For compatibility with `Path.glob()`, raise `ValueError` if an empty
pattern is given to `ReadablePath.glob()`.
Lib/pathlib/types.py
Lib/test/test_pathlib/test_read.py