[Python-checkins] bpo-36389: Add newline to _PyObject_AssertFailed() (GH-16629)
Victor Stinner
webhook-mailer at python.org
Mon Oct 7 17:44:09 EDT 2019
https://github.com/python/cpython/commit/7775349895088a7ae68cecf0c74cf817f15e2c74
commit: 7775349895088a7ae68cecf0c74cf817f15e2c74
branch: master
author: Victor Stinner <vstinner at python.org>
committer: GitHub <noreply at github.com>
date: 2019年10月07日T23:44:05+02:00
summary:
bpo-36389: Add newline to _PyObject_AssertFailed() (GH-16629)
Add a newline between the verbose object dump and the Py_FatalError()
logs for readability.
files:
M Objects/object.c
diff --git a/Objects/object.c b/Objects/object.c
index e94480f7e998f..ae76e33e1f4f1 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");
More information about the Python-checkins
mailing list