diff options
author | Victor Stinner <vstinner@python.org> | 2021-08-31 15:34:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-31 15:34:29 (GMT) |
commit | 888d4cc06b887e77f281ba4d640e281cb4c61b7b (patch) | |
tree | 530d6281ecc1588802a5cec2f663f1278d920410 | |
parent | 3c65457156d87e55010507d616b4eecb7a02883d (diff) | |
download | cpython-888d4cc06b887e77f281ba4d640e281cb4c61b7b.zip cpython-888d4cc06b887e77f281ba4d640e281cb4c61b7b.tar.gz cpython-888d4cc06b887e77f281ba4d640e281cb4c61b7b.tar.bz2 |
bpo-45061: Enhance faulthandler traceback wit no Python frame (GH-28090)
Fix indentation of <no Python frame> message in a faulthandler
traceback or a Fatal Python error traceback. Example:
Current thread 0x00007f03896fb740 (most recent call first):
Garbage-collecting
<no Python frame>
-rw-r--r-- | Python/traceback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/traceback.c b/Python/traceback.c index 204121b..cdabd29 100644 --- a/Python/traceback.c +++ b/Python/traceback.c @@ -1071,7 +1071,7 @@ dump_traceback(int fd, PyThreadState *tstate, int write_header) frame = tstate->frame; if (frame == NULL) { - PUTS(fd, "<no Python frame>\n"); + PUTS(fd, " <no Python frame>\n"); return; } |