Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-128520: pathlib ABCs: reject empty pattern in ReadablePath.glob() #127343

Merged
merged 2 commits into from
Mar 24, 2025

Conversation

barneygale
Copy link
Contributor

@barneygale barneygale commented Nov 27, 2024

For compatibility with Path.glob(), raise ValueError if an empty pattern is given to ReadablePath.glob().

No user-facing changes.

For compatibility with `Path.glob()`, raise `ValueError` if an empty
pattern is given to `PathBase.glob()`.
@barneygale barneygale changed the title pathlib ABCs: reject empty pattern in PathBase.glob() pathlib ABCs: reject empty pattern in ReadablePath.glob() Mar 23, 2025
@barneygale barneygale changed the title pathlib ABCs: reject empty pattern in ReadablePath.glob() GH-128520: pathlib ABCs: reject empty pattern in ReadablePath.glob() Mar 23, 2025
@barneygale barneygale merged commit fbfb0e1 into python:main Mar 24, 2025
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant