Lines Matching full:lines

80 	def colorize_lines (self, lines):  argument
81 lines = (l if l else '' for l in lines)
82 ss = [self.diff_regex.sub (r'\1\n\2\n', l).splitlines (True) for l in lines]
110 lines = [None, None]
116 if lines[i]:
118 for line in self.colorize_lines (lines):
120 lines = [None, None]
121 lines[i] = l[1:]
122 if (all (lines)):
124 for line in self.colorize_lines (lines):
126 lines = [None, None]
127 if (any (lines)):
129 for line in self.colorize_lines (lines):
139 for lines in izip_longest (*files):
140 if all (lines[0] == line for line in lines[1:]):
141 sys.stdout.writelines ([" ", lines[0]])
144 for i, l in enumerate (lines):
157 for key, lines in DiffHelpers.separate_test_cases (f):
158 lines = list (lines)
159 if not DiffHelpers.test_passed (lines):
160 for l in lines: yield l
216 for key, lines in DiffHelpers.separate_test_cases (f):
217 if DiffHelpers.test_passed (lines):
229 for key, lines in DiffHelpers.separate_test_cases (f):
230 test = Test (lines)
253 def __init__ (self, lines): argument
260 for l in lines:
288 '''Reads lines from f, and if the lines have identifiers, ie.
290 yielding lists of all lines with the same identifier.'''
299 def test_passed (lines): argument
300 lines = list (lines)
302 if any (l.find("space+0|space+0") >= 0 for l in lines if l[0] == '+'): return True
303 if any (l.find("uni25CC") >= 0 for l in lines if l[0] == '+'): return True
304 if any (l.find("dottedcircle") >= 0 for l in lines if l[0] == '+'): return True
305 if any (l.find("glyph0") >= 0 for l in lines if l[0] == '+'): return True
306 if any (l.find("gid0") >= 0 for l in lines if l[0] == '+'): return True
307 if any (l.find("notdef") >= 0 for l in lines if l[0] == '+'): return True
308 return all (l[0] == ' ' for l in lines)