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

Reorder imp and importlib imports #33

Merged
merged 1 commit into from
Oct 23, 2019
Merged

Reorder imp and importlib imports #33

merged 1 commit into from
Oct 23, 2019

Conversation

tadeboro
Copy link
Contributor

Python 3.4 deprecated the imp module in favor of importlib. Because we use imp module by default, using SELinux package with Python 3.4+ emits a deprecation warning:

DeprecationWarning: the imp module is deprecated in favor of importlib; see the module's documentation for alternative uses

This commit makes the importlib default module and imp a fallback one.

Python 3.4 deprecated the imp module in favor of importlib. Because we
use imp module by default, using selinux package with Python 3.4+
emits a deprecation warning:

   DeprecationWarning: the imp module is deprecated in favour of
   importlib; see the module's documentation for alternative uses.

This commit makes the importlib default module and imp a fallback one.
@ssbarnea ssbarnea merged commit b102831 into pycontribs:master Oct 23, 2019
@ssbarnea ssbarnea added the enhancement New feature or request label Oct 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants