diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-04-26 22:20:27 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-04-26 22:20:27 (GMT) |
commit | 1188935af9ff5b762c6b1eaacb1dffdf0208bb40 (patch) | |
tree | 61b720b8a6c5d2df1801d29e39c953bbb5c2e226 /Python | |
parent | 90759a2a77d390eef843516fdcfe49f97a054edc (diff) | |
download | cpython-1188935af9ff5b762c6b1eaacb1dffdf0208bb40.zip cpython-1188935af9ff5b762c6b1eaacb1dffdf0208bb40.tar.gz cpython-1188935af9ff5b762c6b1eaacb1dffdf0208bb40.tar.bz2 |
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')
-rw-r--r-- | Python/pythonrun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 38b2ab8..6251e30 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); |