diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2011-03-31 09:46:47 +0300 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2011-03-31 09:46:59 +0300 |
commit | 7134a93f3d890eabd39eca1a35789ed963b665ca (patch) | |
tree | 41c4bd2b50b310e646516adcc54ecdfb67c56a23 | |
parent | 706c9b6553f0f9143a9854db7f25d7de8bf2598d (diff) | |
download | numpy-7134a93f3d890eabd39eca1a35789ed963b665ca.tar.gz |
BUG: fix f2py bug in generating interfaces for assumed shape support as an addition to 4d43ec5.
-rwxr-xr-x | numpy/f2py/crackfortran.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/f2py/crackfortran.py b/numpy/f2py/crackfortran.py index 961f0c247..76d7716f9 100755 --- a/numpy/f2py/crackfortran.py +++ b/numpy/f2py/crackfortran.py @@ -1248,6 +1248,8 @@ def updatevars(typespec,selector,attrspec,entitydecl): l = [] c = re.compile(r'(?P<start>[a-zA-Z]+)') for a in attrspec: + if not a: + continue m = c.match(a) if m: s = m.group('start').lower() @@ -2020,7 +2022,6 @@ def get_parameters(vars, global_params={}): if iscomplex(vars[n]): if v[0]=='(' and v[-1]==')': l = markoutercomma(v[1:-1]).split('@,@') - print n,params try: params[n] = eval(v,g_params,params) except Exception,msg: |