Return number of physical lines in last stmt. The statement doesn't have to be an interesting statement. This is intended to be called when continuation is C_BACKSLASH.
(self)
| 487 | return len(code[i:j].expandtabs(self.tabwidth)) + extra |
| 488 | |
| 489 | def get_num_lines_in_stmt(self): |
| 490 | """Return number of physical lines in last stmt. |
| 491 | |
| 492 | The statement doesn't have to be an interesting statement. This is |
| 493 | intended to be called when continuation is C_BACKSLASH. |
| 494 | """ |
| 495 | self._study1() |
| 496 | goodlines = self.goodlines |
| 497 | return goodlines[-1] - goodlines[-2] |
| 498 | |
| 499 | def compute_backslash_indent(self): |
| 500 | """Return number of spaces the next line should be indented. |
no test coverage detected