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
159 # Raw file lines.
162 # File lines, rstripped & tab-expanded. Dummy at start is so
165 self.lines = [_rstrip(line).expandtabs() + "\n"
167 self.lines.insert(0, None)
168 self.index = 1 # index into self.lines of next line
171 # comment line. indentlevel is -1 for comment lines, as a
178 # Remove trailing empty lines.
179 lines = self.lines
180 while lines and lines[-1] == "\n":
181 lines.pop()
184 stats.append((len(lines), 0))
189 # Copy over initial empty lines -- there's nothing to do until
192 after.extend(lines[1:i])
196 have = getlspace(lines[thisstmt])
210 if have == getlspace(lines[jline]):
221 getlspace(lines[jline])
232 after.extend(lines[thisstmt:nextstmt])
234 for line in lines[thisstmt:nextstmt]:
250 if self.index >= len(self.lines):
253 line = self.lines[self.index]