8000 bpo-36389: Add newline to _PyObject_AssertFailed() (GH-16629) · python/cpython@7775349 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7775349

Browse files
authored
bpo-36389: Add newline to _PyObject_AssertFailed() (GH-16629)
Add a newline between the verbose object dump and the Py_FatalError() logs for readability.
1 parent e310af9 commit 7775349

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Objects/object.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2187,6 +2187,9 @@ _PyObject_AssertFailed(PyObject *obj, const char *expr, const char *msg,
21872187
/* This might succeed or fail, but we're about to abort, so at least
21882188
try to provide any extra info we can: */
21892189
_PyObject_Dump(obj);
2190+
2191+
fprintf(stderr, "\n");
2192+
fflush(stderr);
21902193
}
21912194

21922195
Py_FatalError("_PyObject_AssertFailed");

0 commit comments

Comments
 (0)
0