Lines Matching refs:line1
149 def caret_match(line1, line2): argument
150 if (not line1 or
152 len(line1) > MAX_LINE_LENGTH or
155 return bool(CARET_RE.match(line1) and CARET_RE.match(line2))
165 def ignore_by_regexp(line1, line2, allowed): argument
166 if len(line1) > MAX_LINE_LENGTH or len(line2) > MAX_LINE_LENGTH:
169 match1 = exp.match(line1)
200 for ((line1, lookahead1), (line2, lookahead2)) in itertools.izip_longest(
204 assert not (line1 is None and line2 is None)
207 if line1 is None:
210 return '- %s' % short_line_output(line1), source
213 if line1 == line2:
217 if line1.startswith(ORIGINAL_SOURCE_PREFIX):
218 source = line1[len(ORIGINAL_SOURCE_PREFIX):]
226 if ignore_by_regexp(line1, line2, allowed):
231 '- %s\n+ %s' % (short_line_output(line1), short_line_output(line2)),