Extract lineno from location. Args: location: tuple (lineno, end_lineno, col_offset, end_col_offset) or None Returns: int: The line number (0 for synthetic frames)
(location)
| 31 | |
| 32 | |
| 33 | def extract_lineno(location): |
| 34 | """Extract lineno from location. |
| 35 | |
| 36 | Args: |
| 37 | location: tuple (lineno, end_lineno, col_offset, end_col_offset) or None |
| 38 | |
| 39 | Returns: |
| 40 | int: The line number (0 for synthetic frames) |
| 41 | """ |
| 42 | if location is None: |
| 43 | return 0 |
| 44 | return location[0] |
| 45 | |
| 46 | def _is_internal_frame(frame): |
| 47 | if isinstance(frame, tuple): |
no outgoing calls
searching dependent graphs…