diff options
author | Victor Stinner <vstinner@python.org> | 2019-10-07 21:44:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-07 21:44:05 (GMT) |
commit | 7775349895088a7ae68cecf0c74cf817f15e2c74 (patch) | |
tree | 3404b00fa5d59c43b841d50d773f34c73ae5314f /Objects/object.c | |
parent | e310af9e2941c2fbb7370e003276cc37eb230f16 (diff) | |
download | cpython-7775349895088a7ae68cecf0c74cf817f15e2c74.zip cpython-7775349895088a7ae68cecf0c74cf817f15e2c74.tar.gz cpython-7775349895088a7ae68cecf0c74cf817f15e2c74.tar.bz2 |
bpo-36389: Add newline to _PyObject_AssertFailed() (GH-16629)
Add a newline between the verbose object dump and the Py_FatalError()
logs for readability.
Diffstat (limited to 'Objects/object.c')
-rw-r--r-- | Objects/object.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Objects/object.c b/Objects/object.c index e94480f..ae76e33 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"); |