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 read_text and open_text are depreciated in python 3.11 #62

Open
AaronColman opened this issue Mar 3, 2023 · 0 comments
Open

Comments

@AaronColman
Copy link

Starting in python 3.11 importlib's read_text and open_text are deprecated with a warning...

DeprecationWarning: read_text is deprecated. Use files() instead. self._contracts = json.loads(importlib.resources.read_text(tinyman.v1, 'asc.json'))

DeprecationWarning: open_text is deprecated. Use files() instead. with open_text(package, resource, encoding, errors) as fp:

Py 3.11 is already available for Ubuntu, and the newest version of Debian is expected to carry it as well. So this might matter soon.

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