fix usage pf importlib.util.find_spec for newer pythons
* tests/python/ipnbdoctest.py: Here. It seems importlib does not load importlib.util anymore.
This commit is contained in:
parent
cc00898514
commit
cec522d56b
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ except ImportError:
|
||||||
print('Python 3.x is needed to run this script.')
|
print('Python 3.x is needed to run this script.')
|
||||||
sys.exit(77)
|
sys.exit(77)
|
||||||
|
|
||||||
import importlib
|
import importlib.util
|
||||||
try:
|
try:
|
||||||
importlib.util.find_spec('IPython')
|
importlib.util.find_spec('IPython')
|
||||||
except:
|
except:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue