summaryrefslogtreecommitdiff
path: root/numpy/f2py
diff options
context:
space:
mode:
authorRobert Kern <robert.kern@gmail.com>2007-08-02 19:26:40 +0000
committerRobert Kern <robert.kern@gmail.com>2007-08-02 19:26:40 +0000
commit73001f4b36d4745bec81d3526800aacad5614b3d (patch)
treeb6c054c6c68e5d89377a1e9ad48fff01e25b6a25 /numpy/f2py
parentb6406a5cf255bc49891d893d155af6d106b015a8 (diff)
downloadnumpy-73001f4b36d4745bec81d3526800aacad5614b3d.tar.gz
Ignore blank lines when determining Fortran free format.
Diffstat (limited to 'numpy/f2py')
-rwxr-xr-xnumpy/f2py/crackfortran.py2
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