From: Victor Stinner Date: Mon, 7 Oct 2019 21:44:05 +0000 (+0200) Subject: bpo-36389: Add newline to _PyObject_AssertFailed() (GH-16629) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7775349895088a7ae68cecf0c74cf817f15e2c74;p=python bpo-36389: Add newline to _PyObject_AssertFailed() (GH-16629) Add a newline between the verbose object dump and the Py_FatalError() logs for readability. --- 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");