summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-04-27 00:20:27 +0200
committerVictor Stinner <victor.stinner@haypocalc.com>2011-04-27 00:20:27 +0200
commit0ed611ee5df5214a93916fed71b8804b966570c5 (patch)
tree9228d97300266e77ea9021255f6b32a6a279e62a /Python/pythonrun.c
parent0e28b5406943f4cf41ce8acbdde7b7d6fd62ab6a (diff)
downloadcpython-0ed611ee5df5214a93916fed71b8804b966570c5.tar.gz
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.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 38b2ab84fb..6251e30a34 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -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);