For investigation and debugging
(s: str)
| 506 | return tokens_by_line |
| 507 | |
| 508 | def show_linewise_tokens(s: str): |
| 509 | """For investigation and debugging""" |
| 510 | if not s.endswith('\n'): |
| 511 | s += '\n' |
| 512 | lines = s.splitlines(keepends=True) |
| 513 | for line in make_tokens_by_line(lines): |
| 514 | print("Line -------") |
| 515 | for tokinfo in line: |
| 516 | print(" ", tokinfo) |
| 517 | |
| 518 | # Arbitrary limit to prevent getting stuck in infinite loops |
| 519 | TRANSFORM_LOOP_LIMIT = 500 |
nothing calls this directly
no test coverage detected