(code, instruction_index)
| 438 | |
| 439 | |
| 440 | def _get_code_position(code, instruction_index): |
| 441 | if instruction_index < 0: |
| 442 | return (None, None, None, None) |
| 443 | positions_gen = code.co_positions() |
| 444 | return next(itertools.islice(positions_gen, instruction_index // 2, None)) |
| 445 | |
| 446 | |
| 447 | _RECURSIVE_CUTOFF = 3 # Also hardcoded in traceback.c. |
no test coverage detected
searching dependent graphs…