Home | History | Annotate | Download | only in lib2to3

Lines Matching full:indent

567         indent = None
574 indent, filename))
578 indent = line[:i]
579 elif (indent is not None and
580 (line.startswith(indent + self.PS2) or
581 line == indent + self.PS2.rstrip() + u"\n")):
586 indent, filename))
588 indent = None
592 indent, filename))
595 def refactor_doctest(self, block, lineno, indent, filename):
604 tree = self.parse_block(block, lineno, indent)
619 block = [indent + self.PS1 + new.pop(0)]
621 block += [indent + self.PS2 + line for line in new]
647 def parse_block(self, block, lineno, indent):
653 tree = self.driver.parse_tokens(self.wrap_toks(block, lineno, indent))
657 def wrap_toks(self, block, lineno, indent):
659 tokens = tokenize.generate_tokens(self.gen_lines(block, indent).next)
671 def gen_lines(self, block, indent):
674 This strips the first len(indent + self.PS1) characters off each line.
676 prefix1 = indent + self.PS1
677 prefix2 = indent + self.PS2