From 7775349895088a7ae68cecf0c74cf817f15e2c74 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 7 Oct 2019 23:44:05 +0200 Subject: [PATCH] bpo-36389: Add newline to _PyObject_AssertFailed() (GH-16629) Add a newline between the verbose object dump and the Py_FatalError() logs for readability. --- Objects/object.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Objects/object.c b/Objects/object.c index e94480f7e9..ae76e33e1f 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -2187,6 +2187,9 @@ _PyObject_AssertFailed(PyObject *obj, const char *expr, const char *msg, /* This might succeed or fail, but we're about to abort, so at least try to provide any extra info we can: */ _PyObject_Dump(obj); + + fprintf(stderr, "\n"); + fflush(stderr); } Py_FatalError("_PyObject_AssertFailed"); -- 2.50.0