Clear all references to local variables in the frames of a traceback.
(tb)
| 275 | |
| 276 | |
| 277 | def clear_frames(tb): |
| 278 | "Clear all references to local variables in the frames of a traceback." |
| 279 | while tb is not None: |
| 280 | try: |
| 281 | tb.tb_frame.clear() |
| 282 | except RuntimeError: |
| 283 | # Ignore the exception raised if the frame is still executing. |
| 284 | pass |
| 285 | tb = tb.tb_next |
| 286 | |
| 287 | |
| 288 | class FrameSummary: |
nothing calls this directly
no test coverage detected
searching dependent graphs…