]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #10914: Py_NewInterpreter() uses PyErr_PrintEx(0)
authorVictor Stinner <victor.stinner@haypocalc.com>
Tue, 26 Apr 2011 22:20:27 +0000 (00:20 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Tue, 26 Apr 2011 22:20:27 +0000 (00:20 +0200)
... instead of PyErr_Print() because we don't need to set sys attributes,
the sys module is destroyed just after printing the error.

Python/pythonrun.c

index 38b2ab84fbda34abdd17bfb7d928a81f7b185c60..6251e30a34fadf15eda2c94dd3e6c716e11ce61b 100644 (file)
@@ -622,7 +622,7 @@ Py_NewInterpreter(void)
 handle_error:
     /* Oops, it didn't work.  Undo it all. */
 
-    PyErr_Print();
+    PyErr_PrintEx(0);
     PyThreadState_Clear(tstate);
     PyThreadState_Swap(save_tstate);
     PyThreadState_Delete(tstate);