remove_importlib_frames in import.c will always remove sequences of importlib frames that end with a call to this function Use it instead of a normal call in places where including the importlib frames introduces unwanted noise into the traceback (e.g. when executing module code)
(f, *args, **kwds)
| 481 | |
| 482 | # Frame stripping magic ############################################### |
| 483 | def _call_with_frames_removed(f, *args, **kwds): |
| 484 | """remove_importlib_frames in import.c will always remove sequences |
| 485 | of importlib frames that end with a call to this function |
| 486 | |
| 487 | Use it instead of a normal call in places where including the importlib |
| 488 | frames introduces unwanted noise into the traceback (e.g. when executing |
| 489 | module code) |
| 490 | """ |
| 491 | return f(*args, **kwds) |
| 492 | |
| 493 | |
| 494 | def _verbose_message(message, *args, verbosity=1): |
no test coverage detected
searching dependent graphs…