diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2006-05-26 14:34:15 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2006-05-26 14:34:15 +0000 |
commit | 7e7b874568bb08b8f22fc38f15df40aafa6571ef (patch) | |
tree | 7887eb16cf34b96232be29c9233a44e2d1fa06af /numpy/f2py/lib/sourceinfo.py | |
parent | 9b185702f5142bada883f3231a889679d25033f2 (diff) | |
download | numpy-7e7b874568bb08b8f22fc38f15df40aafa6571ef.tar.gz |
Fixed new fortran reader and parser bugs.
Diffstat (limited to 'numpy/f2py/lib/sourceinfo.py')
-rw-r--r-- | numpy/f2py/lib/sourceinfo.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/numpy/f2py/lib/sourceinfo.py b/numpy/f2py/lib/sourceinfo.py index 457c3d8b3..a31c99d73 100644 --- a/numpy/f2py/lib/sourceinfo.py +++ b/numpy/f2py/lib/sourceinfo.py @@ -54,13 +54,13 @@ def is_free_format(file): while n>0 and line: if line[0]!='!' and line.strip(): n -= 1 - if not contline and (line[0]!='\t' and _free_f90_start(line[:5])): + if line[0]!='\t' and _free_f90_start(line[:5]) or line[-2:-1]=='&': isfree = True break - elif line[-2:-1]=='&': - contline = True - else: - contline = False + #elif line[-2:-1]=='&': + # contline = True + #else: + # contline = False line = f.readline() f.close() return isfree |