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 | c40a350db0f16c678273ee715fe7c70c431360a1 (patch) | |
| tree | 482500d7500f786e4cd5f0fbc38f38d7e1bb4c91 /Python/pythonrun.c | |
| parent | 66299a49f0f5b3aab6ceed6cbdf94a6b89b70328 (diff) | |
| download | cpython-c40a350db0f16c678273ee715fe7c70c431360a1.zip cpython-c40a350db0f16c678273ee715fe7c70c431360a1.tar.gz cpython-c40a350db0f16c678273ee715fe7c70c431360a1.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/pythonrun.c')
| -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 a6787c4..99bd66d 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);  | 
