On 2/27/19 11:12 AM, Florian Weimer wrote: > * 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 Good point. Is the patch ready to be installed now? Thanks, Martin > > Thanks, > Florian >