summaryrefslogtreecommitdiff
path: root/numpy/f2py/f90mod_rules.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2015-10-26 14:59:57 -0600
committerCharles Harris <charlesr.harris@gmail.com>2015-10-26 15:19:33 -0600
commit83d5f9a331543fa0748708972a5e6b7c5dcbcb03 (patch)
tree2c37032dd00132671bac8545efe91ced9e46c1d8 /numpy/f2py/f90mod_rules.py
parent42fefc59a502d1b17873d19f9d60d039e55ccfc4 (diff)
downloadnumpy-83d5f9a331543fa0748708972a5e6b7c5dcbcb03.tar.gz
BUG: Revert some import * fixes in f2py.
The files * capi_maps.py * crackfortran.py * f90mod_rules.py previously used `from .auxfuncs import *` and also called `eval` without an explicit enviroment. An attempt to use explicit imports led to errors, and because static code analysis in not sufficient to determine what functions need to be imported, it is safest to continue using `import *` pending a major refactoring of f2py. Closes #6563.
Diffstat (limited to 'numpy/f2py/f90mod_rules.py')
-rw-r--r--numpy/f2py/f90mod_rules.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/numpy/f2py/f90mod_rules.py b/numpy/f2py/f90mod_rules.py
index 88d661369..ec3a24839 100644
--- a/numpy/f2py/f90mod_rules.py
+++ b/numpy/f2py/f90mod_rules.py
@@ -21,15 +21,15 @@ f2py_version = 'See `f2py -v`'
import numpy as np
-from .auxfuncs import (
- applyrules, dictappend, hasbody, hasnote, isallocatable, isfunction,
- isintent_hide, ismodule, isprivate, isroutine, isstringarray, l_or,
- outmess
-)
from . import capi_maps
from . import func2subr
from .crackfortran import undo_rmbadname, undo_rmbadname1
+# The eviroment provided by auxfuncs.py is needed for some calls to eval.
+# As the needed functions cannot be determined by static inspection of the
+# code, it is safest to use import * pending a major refactoring of f2py.
+from .auxfuncs import *
+
options = {}