diff options
author | Robert Kern <robert.kern@gmail.com> | 2007-08-02 19:26:40 +0000 |
---|---|---|
committer | Robert Kern <robert.kern@gmail.com> | 2007-08-02 19:26:40 +0000 |
commit | 73001f4b36d4745bec81d3526800aacad5614b3d (patch) | |
tree | b6c054c6c68e5d89377a1e9ad48fff01e25b6a25 /numpy/f2py | |
parent | b6406a5cf255bc49891d893d155af6d106b015a8 (diff) | |
download | numpy-73001f4b36d4745bec81d3526800aacad5614b3d.tar.gz |
Ignore blank lines when determining Fortran free format.
Diffstat (limited to 'numpy/f2py')
-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 3765a4b1b..7026cd01a 100755 --- a/numpy/f2py/crackfortran.py +++ b/numpy/f2py/crackfortran.py @@ -247,7 +247,7 @@ def is_free_format(file): n = 0 result = 1 while n>0 and line: - if line[0]!='!': + if line[0]!='!' and line.strip(): n -= 1 if (line[0]!='\t' and _free_f90_start(line[:5])) or line[-2:-1]=='&': result = 1 |