Thanks to visit codestin.com
Credit goes to github.com

Skip to content

pathlib: Fix glob() to return Path objects rather than strings #1027

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RotatingLlama
Copy link

Fix glob() to return Path objects rather than bare strings, same as CPython https://docs.python.org/3/library/pathlib.html#pathlib.Path.glob

Fix glob() to return Path objects rather than bare strings, same as CPython
https://docs.python.org/3/library/pathlib.html#pathlib.Path.glob

Signed-off-by: RotatingLlama <[email protected]>
@andrewleech
Copy link
Contributor

This discrepancy with cpython caught me out recently too, thanks for submitting the fix.

Would you be able to update the commit message to match the repo standard needs patterns and force-push to the same branch? That would fix the ci failure.

@RotatingLlama
Copy link
Author

No probs, it's very minor. This is actually my first pull request and I spent about half an hour yesterday trying to fix the error, but couldn't figure out how to do it. Would you give me a pointer, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants