Ensure importlib.util is imported on Python 3.5
This commit is contained in:
parent
e1f340b53f
commit
82689e1aa8
|
@ -1,5 +1,10 @@
|
||||||
import importlib
|
import importlib
|
||||||
|
|
||||||
|
try:
|
||||||
|
import importlib.util
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
module_from_spec = importlib.util.module_from_spec
|
module_from_spec = importlib.util.module_from_spec
|
||||||
|
|
Loading…
Reference in New Issue