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

DeprecationWarning: importlib.resources.path is deprecated #23

Open
soxofaan opened this issue Jul 6, 2024 · 1 comment
Open

DeprecationWarning: importlib.resources.path is deprecated #23

soxofaan opened this issue Jul 6, 2024 · 1 comment

Comments

@soxofaan
Copy link
Owner

soxofaan commented Jul 6, 2024

warning during tests:

/dahuffman/codecs/init.py:24: DeprecationWarning: path is deprecated. Use files() instead. Refer to https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.
with importlib.resources.path("dahuffman.codecs", resource=name) as path:

@soxofaan
Copy link
Owner Author

importlib.resources.path is deprecated since python 3.11 and the new "files" based API is available since python 3.9.

minimum supported python version is still 3.7, so 2 version bumps would be required to replace the deprecated usage with the new recommended usage

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