summaryrefslogtreecommitdiff
path: root/numpy/compat
diff options
context:
space:
mode:
authorJonathan Helmus <jjhelmus@gmail.com>2016-10-12 13:07:42 -0500
committerJonathan Helmus <jjhelmus@gmail.com>2016-10-12 13:07:42 -0500
commit5d0ce36e5be134bb5ead03cab1edeaa60fa355aa (patch)
treeb2369e4193d1edd1367f068b6c76ae114f45e99e /numpy/compat
parentb0a6e5583f2952a040c45d0d50f5e93372dc175b (diff)
downloadnumpy-5d0ce36e5be134bb5ead03cab1edeaa60fa355aa.tar.gz
BUG: import full module path in npy_load_module
Use the full module path when importing importlib.machinery for use in the npy_load_module function. Just importing importlib is not sufficient in certain cases, for example Python 3.4. closes #8147
Diffstat (limited to 'numpy/compat')
-rw-r--r--numpy/compat/py3k.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/compat/py3k.py b/numpy/compat/py3k.py
index 25cc5355c..d5bb2e4c7 100644
--- a/numpy/compat/py3k.py
+++ b/numpy/compat/py3k.py
@@ -118,7 +118,7 @@ if sys.version_info[0] >= 3 and sys.version_info[1] >= 4:
mod : module
"""
- import importlib
+ import importlib.machinery
return importlib.machinery.SourceFileLoader(name, fn).load_module()
else:
def npy_load_module(name, fn, info=None):