Lines Matching full:lines
14 Also trim excess spaces and tabs from ends of lines, and remove empty lines
33 lines. So long as the input files get a clean bill of health from
158 # Raw file lines.
161 # File lines, rstripped & tab-expanded. Dummy at start is so
164 self.lines = [_rstrip(line).expandtabs() + "\n"
166 self.lines.insert(0, None)
167 self.index = 1 # index into self.lines of next line
170 # comment line. indentlevel is -1 for comment lines, as a
177 # Remove trailing empty lines.
178 lines = self.lines
179 while lines and lines[-1] == "\n":
180 lines.pop()
183 stats.append((len(lines), 0))
188 # Copy over initial empty lines -- there's nothing to do until
191 after.extend(lines[1:i])
195 have = getlspace(lines[thisstmt])
209 if have == getlspace(lines[jline]):
220 getlspace(lines[jline])
231 after.extend(lines[thisstmt:nextstmt])
233 for line in lines[thisstmt:nextstmt]:
249 if self.index >= len(self.lines):
252 line = self.lines[self.index]