This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Fix location where math-vector-fortran.h is installed.
* Martin Liška:
> is_nonsysdep_header = os.access(header, os.R_OK)
> if is_nonsysdep_header:
> + # Skip Fortran header files
> + if '-*- f90 -*-' in open(header).readlines()[0]:
> + continue
Please use “with” to close the file promptly, and do not read the entire
file, like this (untested):
# Skip Fortran header files.
with open(header) as inp:
if '-*- f90 -*-' in next(inp):
continue
Thanks,
Florian