diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2021-01-18 15:19:46 +0200 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2021-01-18 15:19:46 +0200 |
commit | 26a2f584dc79cb0ef02ca41f4785152b8041c71b (patch) | |
tree | c3eebf23d2a76c118af3f7ce2cc9c9f336cdd077 | |
parent | 2908338b19c26c043eab61c2af7bdff96b02b1bc (diff) | |
download | numpy-26a2f584dc79cb0ef02ca41f4785152b8041c71b.tar.gz |
BUG: Fix detecting Fortran 90+ source format.
-rw-r--r-- | numpy/distutils/fcompiler/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/fcompiler/__init__.py b/numpy/distutils/fcompiler/__init__.py index 4730a5a09..812461538 100644 --- a/numpy/distutils/fcompiler/__init__.py +++ b/numpy/distutils/fcompiler/__init__.py @@ -976,7 +976,7 @@ def is_free_format(file): with open(file, encoding='latin1') as f: line = f.readline() n = 10000 # the number of non-comment lines to scan for hints - if _has_f_header(line): + if _has_f_header(line) or _has_fix_header(line): n = 0 elif _has_f90_header(line): n = 0 |