8000 BUG: import full module path in npy_load_module by jjhelmus · Pull Request #8148 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: import full module path in npy_load_module #8148

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 13, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
  • Loading branch information
jjhelmus committed Oct 12, 2016
commit 5d0ce36e5be134bb5ead03cab1edeaa60fa355aa
2 changes: 1 addition & 1 deletion numpy/compat/py3k.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def npy_load_module(name, fn, info=None):
mod : module

"""
import importlib
import importlib.machinery
return importlib.machinery.SourceFileLoader(name, fn).load_module()
else:
def npy_load_module(name, fn, info=None):
Expand Down
0