mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
Merged revisions 81844 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r81844 | victor.stinner | 2010-06-08 23:00:13 +0200 (mar., 08 juin 2010) | 6 lines Py_FatalError(): don't sys sys.last_xxx variables Call PyErr_PrintEx(0) instead of PyErr_Print() to avoid a crash if Py_FatalError() is called in an early stage of Python initialization (if PySys is not yet initialized). ........
This commit is contained in:
parent
7f99f092eb
commit
93362d4e6b
1 changed files with 1 additions and 1 deletions
|
@ -2024,7 +2024,7 @@ Py_FatalError(const char *msg)
|
|||
fprintf(stderr, "Fatal Python error: %s\n", msg);
|
||||
fflush(stderr); /* it helps in Windows debug build */
|
||||
if (PyErr_Occurred()) {
|
||||
PyErr_Print();
|
||||
PyErr_PrintEx(0);
|
||||
}
|
||||
#ifdef MS_WINDOWS
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue