We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d08f8f commit 1d5413bCopy full SHA for 1d5413b
Lib/runpy.py
@@ -11,10 +11,12 @@
11
12
13
import sys
14
-import __importlib_util
+try:
15
+ import __importlib_util
16
+except:
17
# 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
18
+ import importlib.machinery # importlib first so we can test #15386 via -m
19
+ import importlib.util as __importlib_util
20
import types
21
# FIXME uncomment line below once we can import pkgutil
22
# from pkgutil import read_code, get_importer
0 commit comments