[PATCH] Fix location where math-vector-fortran.h is installed.

Florian Weimer fweimer@redhat.com
Wed Feb 27 10:12:00 GMT 2019


* 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



More information about the Libc-alpha mailing list