bpo-36389: Add newline to _PyObject_AssertFailed() (GH-16629) · python/cpython@7775349 (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit 7775349
Add a newline between the verbose object dump and the Py_FatalError() logs for readability.
File tree
1 file changed
lines changed
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -2187,6 +2187,9 @@ _PyObject_AssertFailed(PyObject *obj, const char *expr, const char *msg, | ||
2187 | 2187 | /* This might succeed or fail, but we're about to abort, so at least |
2188 | 2188 | try to provide any extra info we can: */ |
2189 | 2189 | _PyObject_Dump(obj); |
2190 | + | |
2191 | +fprintf(stderr, "\n"); | |
2192 | +fflush(stderr); | |
2190 | 2193 | } |
2191 | 2194 | |
2192 | 2195 | Py_FatalError("_PyObject_AssertFailed"); |