Lines Matching refs:lines
76 def colorize_lines (self, lines): argument
77 lines = (l if l else '' for l in lines)
78 ss = [self.diff_regex.sub (r'\1\n\2\n', l).splitlines (True) for l in lines]
106 lines = [None, None]
112 if lines[i]:
114 for line in self.colorize_lines (lines):
116 lines = [None, None]
117 lines[i] = l[1:]
118 if (all (lines)):
120 for line in self.colorize_lines (lines):
122 lines = [None, None]
123 if (any (lines)):
125 for line in self.colorize_lines (lines):
135 for lines in izip_longest (*files):
136 if all (lines[0] == line for line in lines[1:]):
137 sys.stdout.writelines ([" ", lines[0]])
140 for i, l in enumerate (lines):
153 for key, lines in DiffHelpers.separate_test_cases (f):
154 lines = list (lines)
155 if not DiffHelpers.test_passed (lines):
156 for l in lines: yield l
212 for key, lines in DiffHelpers.separate_test_cases (f):
213 if DiffHelpers.test_passed (lines):
225 for key, lines in DiffHelpers.separate_test_cases (f):
226 test = Test (lines)
249 def __init__ (self, lines): argument
256 for l in lines:
295 def test_passed (lines): argument
296 lines = list (lines)
298 if any (l.find("space+0|space+0") >= 0 for l in lines if l[0] == '+'): return True
299 if any (l.find("uni25CC") >= 0 for l in lines if l[0] == '+'): return True
300 if any (l.find("dottedcircle") >= 0 for l in lines if l[0] == '+'): return True
301 if any (l.find("glyph0") >= 0 for l in lines if l[0] == '+'): return True
302 if any (l.find("gid0") >= 0 for l in lines if l[0] == '+'): return True
303 if any (l.find("notdef") >= 0 for l in lines if l[0] == '+'): return True
304 return all (l[0] == ' ' for l in lines)