Lines Matching refs:header
10 Return a tuple of (header, path) for the file at path.
11 If the file does not have a header, the header is the empty string.
14 header = fd.readline()
15 if header.startswith('! '):
16 return header, path
25 The first line of each file is an optional section header in the form
28 Where two sections have identical headers, the second header is skipped.
30 Special case are header-less files which we store with the empty string
31 as header, these need to get written out first.
40 # pre-populate with the empty header so it's the first one to be written
49 header, path = handle_file(path)
50 paths = sections.get(header, [])
52 sections[header] = paths
53 if header not in section_names:
54 section_names.append(header)
56 for header in section_names:
57 if header:
59 dest.write(header)
60 for f in sections[header]:
62 if header:
63 fd.readline() # drop the header