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

importlib.resources.read_text is deprecated #7

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

Conversation

arpost
Copy link

@arpost arpost commented Apr 24, 2024

Hello, and thanks for creating this project. My patch eliminates a deprecation warning on python 3.11. importlib.resources.read_text is going away, and per the python documentation the replacement is importlib.resources.files, which was introduced in python 3.9. My patch falls back to using read_text if files does not exist for compatibility with older versions of python. Thanks for considering!

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.

1 participant