Home | History | Annotate | Download | only in scripts

Lines Matching refs: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
166 # Raw file lines.
169 # File lines, rstripped & tab-expanded. Dummy at start is so
172 self.lines = [_rstrip(line).expandtabs() + "\n"
174 self.lines.insert(0, None)
175 self.index = 1 # index into self.lines of next line
178 # comment line. indentlevel is -1 for comment lines, as a
189 # Remove trailing empty lines.
190 lines = self.lines
191 while lines and lines[-1] == "\n":
192 lines.pop()
195 stats.append((len(lines), 0))
200 # Copy over initial empty lines -- there's nothing to do until
203 after.extend(lines[1:i])
207 have = getlspace(lines[thisstmt])
221 if have == getlspace(lines[jline]):
232 getlspace(lines[jline])
243 after.extend(lines[thisstmt:nextstmt])
245 for line in lines[thisstmt:nextstmt]:
261 if self.index >= len(self.lines):
264 line = self.lines[self.index]