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

Use newer importlib APIs when loading module for docstring & __version__ #499

Merged
merged 1 commit into from Feb 21, 2022

Conversation

takluyver
Copy link
Member

The API we were using before was deprecated and has started issuing warnings. I've based the new code on this example in the importlib docs: https://docs.python.org/3/library/importlib.html#importing-a-source-file-directly

Closes #496.

@takluyver takluyver added this to the 3.7 milestone Jan 2, 2022
Copy link
Contributor

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

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.

Python 3.10 deprecated method in tests
3 participants