summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-08-31 15:34:29 (GMT)
committerGitHub <noreply@github.com>2021-08-31 15:34:29 (GMT)
commit888d4cc06b887e77f281ba4d640e281cb4c61b7b (patch)
tree530d6281ecc1588802a5cec2f663f1278d920410
parent3c65457156d87e55010507d616b4eecb7a02883d (diff)
downloadcpython-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.c2
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;
}