From 91decb4722eed660b67e8249f1d1a0776a999616 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 31 Aug 2021 15:35:10 +0200 Subject: [PATCH] bpo-45061: Enhance faulthandler traceback wit no Python frame Fix indentation of message in a faulthandler traceback or a Fatal Python error traceback. Example: Current thread 0x00007f03896fb740 (most recent call first): Garbage-collecting --- Python/traceback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/traceback.c b/Python/traceback.c index 204121ba66d96e2..cdabd2900acf492 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, "\n"); + PUTS(fd, " \n"); return; }