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

Python 3.12: deprecate resources.open_binary() #50

Open
eccles opened this issue Dec 8, 2022 · 0 comments
Open

Python 3.12: deprecate resources.open_binary() #50

eccles opened this issue Dec 8, 2022 · 0 comments

Comments

@eccles
Copy link
Member

eccles commented Dec 8, 2022

Is your feature request related to a problem? Please describe.
The importlib.resources.open_binary() method is deprecated from3.12.
This method should be replaced with resources.files(pkg).joinpath(filename).open('rb') for later versions of python

Describe the solution you'd like
If python 3.12 than resources.files(pkg).joinpath(filename).open('rb') is ued instead.

@eccles eccles changed the title Python 3.12: deperecate resources.open_binary() Python 3.12: deprecate resources.open_binary() Dec 8, 2022
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

No branches or pull requests

1 participant