• Home
  • Raw
  • Download

Lines Matching full:lines

79 	def colorize_lines (self, lines):  argument
80 lines = (l if l else '' for l in lines)
81 ss = [self.diff_regex.sub (r'\1\n\2\n', l).splitlines (True) for l in lines]
109 lines = [None, None]
115 if lines[i]:
117 for line in self.colorize_lines (lines):
119 lines = [None, None]
120 lines[i] = l[1:]
121 if (all (lines)):
123 for line in self.colorize_lines (lines):
125 lines = [None, None]
126 if (any (lines)):
128 for line in self.colorize_lines (lines):
138 for lines in itertools.zip_longest (*files):
139 if all (lines[0] == line for line in lines[1:]):
140 sys.stdout.writelines ([" ", lines[0]])
143 for i, l in enumerate (lines):
155 for key, lines in DiffHelpers.separate_test_cases (f):
156 lines = list (lines)
157 if not DiffHelpers.test_passed (lines):
158 for l in lines: yield l
214 for key, lines in DiffHelpers.separate_test_cases (f):
215 if DiffHelpers.test_passed (lines):
225 def __init__ (self, lines): argument
232 for l in lines:
260 '''Reads lines from f, and if the lines have identifiers, ie.
262 yielding lists of all lines with the same identifier.'''
271 def test_passed (lines): argument
272 lines = list (lines)
274 if any (l.find("space+0|space+0") >= 0 for l in lines if l[0] == '+'): return True
275 if any (l.find("uni25CC") >= 0 for l in lines if l[0] == '+'): return True
276 if any (l.find("dottedcircle") >= 0 for l in lines if l[0] == '+'): return True
277 if any (l.find("glyph0") >= 0 for l in lines if l[0] == '+'): return True
278 if any (l.find("gid0") >= 0 for l in lines if l[0] == '+'): return True
279 if any (l.find("notdef") >= 0 for l in lines if l[0] == '+'): return True
280 return all (l[0] == ' ' for l in lines)