Commit db32b7ad authored by Victor Stinner's avatar Victor Stinner

Issue #10914: Py_NewInterpreter() uses PyErr_PrintEx(0)

... instead of PyErr_Print() because we don't need to set sys attributes,
the sys module is destroyed just after printing the error.
parent 1ea70078
...@@ -632,7 +632,7 @@ Py_NewInterpreter(void) ...@@ -632,7 +632,7 @@ Py_NewInterpreter(void)
handle_error: handle_error:
/* Oops, it didn't work. Undo it all. */ /* Oops, it didn't work. Undo it all. */
PyErr_Print(); PyErr_PrintEx(0);
PyThreadState_Clear(tstate); PyThreadState_Clear(tstate);
PyThreadState_Swap(save_tstate); PyThreadState_Swap(save_tstate);
PyThreadState_Delete(tstate); PyThreadState_Delete(tstate);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment