diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-04-27 00:20:27 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-04-27 00:20:27 +0200 |
commit | db32b7ada2bd63927e2ecd2c32427baec6e44fda (patch) | |
tree | f82be8f57d9e58cdedc9b62107ff6f3716c677f7 /Python | |
parent | 1ea70078f013039d3e5c76630e6084f7ad8b47ae (diff) | |
download | cpython-db32b7ada2bd63927e2ecd2c32427baec6e44fda.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')
-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 a6787c4fc7..99bd66d7ad 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -632,7 +632,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); |