Skip to content

Comments

Use importlib instead of imp in __bootstrap__ functions#2071

Merged
jaraco merged 1 commit intopypa:masterfrom
alexhenrie:imp
Jun 22, 2020
Merged

Use importlib instead of imp in __bootstrap__ functions#2071
jaraco merged 1 commit intopypa:masterfrom
alexhenrie:imp

Conversation

@alexhenrie
Copy link
Contributor

When the PYTHONWARNINGS environment variable is set, I often see the message DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses in conjuction with bootstrap files for compiled modules. This pull request fixes the code that triggers that warning.

Copy link
Member

@jaraco jaraco left a comment

Choose a reason for hiding this comment

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

Can you add a changelog entry please?

@alexhenrie
Copy link
Contributor Author

@jaraco Changelog entry added.

@jaraco jaraco merged commit 2a55538 into pypa:master Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants