Lines Matching refs:line
30 def _report_error(line, fmt, *args): argument
33 print(fmt.format(line, *args), file=sys.stderr)
69 def append(self, line): argument
71 self._lines.append((self._KEEP, line))
76 for line in lines:
77 self.append(line)
80 def replace(self, locs, line): argument
84 self._lines[next(locs)] = (self._KEEP, line)
92 for action, line in self._lines:
94 print(line, file=out_file)
234 for line_no, line in line_iter:
235 match = self._INCLUDE.match(line)
242 stashed_lines.append(line)
246 match = self._VAR.match(line)
249 stashed_lines.append(line)
256 line_no, line = next(line_iter, (-1, None))
257 if line is None:
260 stashed_lines.append(line)
261 value = value[:-1] + line.strip()
268 stashed_lines.append(line)