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

Fall back to pkgutil when Python >= 3.13 #747

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

penguinpee
Copy link

The read_text and other methods will be removed from Python 3.13.
As a stop gap measure fall back to pkgutil.

@penguinpee penguinpee changed the title Import from _legacy when Python >= 3.13 Fall back to pkgutil when Python >= 3.13 Mar 28, 2024
The `read_text` and other methods will be removed from Python 3.13.
As a stop gap measure  fall back to `pkgutil`.
@penguinpee
Copy link
Author

Apologies for the somewhat messy PR. I tried a different approach, first. But that didn't work and I subsequently forgot to change the title of the commit message.

This might not be making it as the final solution. But it does solve the issue at our end regarding removal of read_text.

See also: https://docs.python.org/3.13/whatsnew/3.13.html#importlib

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.

None yet

1 participant