MCPcopy Create free account
hub / github.com/numpy/numpy / has_f90_header

Function has_f90_header

numpy/distutils/fcompiler/__init__.py:1007–1010  ·  view source on GitHub ↗
(src)

Source from the content-addressed store, hash-verified

1005 return result
1006
1007def has_f90_header(src):
1008 with open(src, encoding='latin1') as f:
1009 line = f.readline()
1010 return _has_f90_header(line) or _has_fix_header(line)
1011
1012_f77flags_re = re.compile(r'(c|)f77flags\s*\(\s*(?P<fcname>\w+)\s*\)\s*=\s*(?P<fflags>.*)', re.I)
1013def get_f77flags(src):

Callers 2

CCompiler_compileFunction · 0.90
_compileMethod · 0.85

Calls 1

openFunction · 0.85

Tested by

no test coverage detected