(self, stmt, block, begin_indent="")
| 645 | |
| 646 | class ForNode(BlockNode): |
| 647 | def __init__(self, stmt, block, begin_indent=""): |
| 648 | self.original_stmt = stmt |
| 649 | tok = PythonTokenizer(stmt) |
| 650 | tok.consume_till("in") |
| 651 | a = stmt[: tok.index] # for i in |
| 652 | b = stmt[tok.index : -1] # rest of for stmt excluding : |
| 653 | stmt = a + " loop.setup(" + b.strip() + "):" |
| 654 | BlockNode.__init__(self, stmt, block, begin_indent) |
| 655 | |
| 656 | def __repr__(self): |
| 657 | return f"<block: {repr(self.original_stmt)}, {repr(self.suite)}>" |
nothing calls this directly
no test coverage detected