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

Add os.PathLike support for cert files #6454

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

steveberdy
Copy link
Contributor

Summary

Adds support for any path-like object, including pathlib.Path. See #5936 (comment) for more details.
Some things have changed since the linked issue was created, so it may be a good time to add support now.

Fixes #5936

@sigmavirus24
Copy link
Contributor

My main concern is that if we add support here, folks will want us to support it everywhere else we accept file-like objects and that's not exactly tenable for us to support

@steveberdy
Copy link
Contributor Author

Maybe it doesn't have to be advertised, and we can add in path-like support slowly where it is feasible.

@steveberdy
Copy link
Contributor Author

Should I close this?

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.

cert parameter does not accept a single pathlib.Path object as argument
3 participants