Skip to content

Commit b102831

Browse files
authored
Merge pull request #33 from xlab-si/imp-is-deprecated
Reorder imp and importlib imports
2 parents 984eae6 + 4012e24 commit b102831

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

selinux/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
import sys
1717

1818
try:
19-
from imp import reload # type: ignore # noqa
20-
except ImportError: # py34+
2119
from importlib import reload # type: ignore # noqa
20+
except ImportError: # py < 34
21+
from imp import reload # type: ignore # noqa
2222

2323

2424
class add_path(object):

0 commit comments

Comments
 (0)