Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 93362d4

Browse files
author
Victor Stinner
committed
Merged revisions 81844 via svnmerge from
svn+ssh://[email protected]/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). ........
1 parent 7f99f09 commit 93362d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/pythonrun.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2024,7 +2024,7 @@ Py_FatalError(const char *msg)
20242024
fprintf(stderr, "Fatal Python error: %s\n", msg);
20252025
fflush(stderr); /* it helps in Windows debug build */
20262026
if (PyErr_Occurred()) {
2027-
PyErr_Print();
2027+
PyErr_PrintEx(0);
20282028
}
20292029
#ifdef MS_WINDOWS
20302030
{

0 commit comments

Comments
 (0)