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

Fix overly restrictive file name types #14

Merged
merged 2 commits into from
Nov 26, 2022

Conversation

gotmax23
Copy link
Collaborator

StrOrBytesPath encompasses str, bytes, and PathLike file names, which are valid inputs to open(). There's likely more of these that should be fixed, but this is some of them. I'd like to use pathlib in my source distribution code so that's my motivation here :).

@felixfontein
Copy link
Collaborator

What is the test.yml for? Also, can you please add a changelog fragment? Thanks.

@gotmax23
Copy link
Collaborator Author

What is the test.yml for?

It's for people who don't check which files they've staged before committing :). I'll remove that and write a changelog fragment.

StrOrBytesPath encompasses str, bytes, and PathLike objects, which are
valid inputs to open(). There's likely more of these that should be
fixed, but this is some of them.
@felixfontein felixfontein merged commit 3a53f08 into ansible-community:main Nov 26, 2022
@felixfontein
Copy link
Collaborator

@gotmax23 thanks for this improvement!

@gotmax23
Copy link
Collaborator Author

Thanks for reviewing!

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