Find the next frame that doesn't involve CPython internals.
(frame)
| 277 | |
| 278 | |
| 279 | def _next_external_frame(frame): |
| 280 | """Find the next frame that doesn't involve CPython internals.""" |
| 281 | frame = frame.f_back |
| 282 | while frame is not None and _is_internal_frame(frame): |
| 283 | frame = frame.f_back |
| 284 | return frame |
| 285 | |
| 286 | |
| 287 | # Code typically replaced by _warnings |
no test coverage detected