summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-08-31 15:53:17 (GMT)
committerGitHub <noreply@github.com>2021-08-31 15:53:17 (GMT)
commitc4c57e5c0eb79795d4fd1d9d8292455567c60070 (patch)
treed338532426dd7cffcd1a17d81206813b61a345c9 /Python
parentab8fed88fc602282167f6459b43f2cf0c771f60a (diff)
downloadcpython-c4c57e5c0eb79795d4fd1d9d8292455567c60070.zip
cpython-c4c57e5c0eb79795d4fd1d9d8292455567c60070.tar.gz
cpython-c4c57e5c0eb79795d4fd1d9d8292455567c60070.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> (cherry picked from commit 888d4cc06b887e77f281ba4d640e281cb4c61b7b) Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Python')
-rw-r--r--Python/traceback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/traceback.c b/Python/traceback.c
index 88ffc01..9b23f45 100644
--- a/Python/traceback.c
+++ b/Python/traceback.c
@@ -801,7 +801,7 @@ dump_traceback(int fd, PyThreadState *tstate, int write_header)
// not modify Python objects.
frame = tstate->frame;
if (frame == NULL) {
- PUTS(fd, "<no Python frame>\n");
+ PUTS(fd, " <no Python frame>\n");
return;
}