diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2008-04-18 19:59:42 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2008-04-18 19:59:42 +0000 |
commit | db8970d31304fe06bdef3abed9e95d8f67d2729f (patch) | |
tree | f2f27469beb258ca598bda289df3e4980f680d38 /numpy/f2py/crackfortran.py | |
parent | 376a36e792d160b1db7267c4a49edb39ef53c1bf (diff) | |
download | numpy-db8970d31304fe06bdef3abed9e95d8f67d2729f.tar.gz |
Fix bug in parsing initexpr in 'INTEGER, PARAMETER :: ny = nx + 2'
Diffstat (limited to 'numpy/f2py/crackfortran.py')
-rwxr-xr-x | numpy/f2py/crackfortran.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/f2py/crackfortran.py b/numpy/f2py/crackfortran.py index f55849ecd..42ef4f7fc 100755 --- a/numpy/f2py/crackfortran.py +++ b/numpy/f2py/crackfortran.py @@ -1202,7 +1202,7 @@ def removespaces(expr): expr2=expr[0] for i in range(1,len(expr)-1): if expr[i]==' ' and \ - ((expr[i+1] in "()[]{}= ") or (expr[i-1] in "()[]{}= ")): continue + ((expr[i+1] in "()[]{}=+-/* ") or (expr[i-1] in "()[]{}=+-/* ")): continue expr2=expr2+expr[i] expr2=expr2+expr[-1] return expr2 |