Fix whats_left_modules under cpython

This commit is contained in:
coolreader18 committed 2019-08-15 02:01:25 -05:00
1 parent 7d08f8fe05
commit 1d5413be89
1 file changed
+5 -3
+5 -3
View File
@@ -11,10 +11,12 @@ importers when locating support scripts as well as when importing modules.
import sys
import __importlib_util
try:
import __importlib_util
except:
# FIXME replace above with below once we can import importlib
# import importlib.machinery # importlib first so we can test #15386 via -m
# import importlib.util
import importlib.machinery # importlib first so we can test #15386 via -m
import importlib.util as __importlib_util
import types
# FIXME uncomment line below once we can import pkgutil
# from pkgutil import read_code, get_importer