summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-06-08 21:05:20 +0000
committerVictor Stinner <victor.stinner@haypocalc.com>2010-06-08 21:05:20 +0000
commit9d98677f926d47cb8e66c50733372e9da0bd85ee (patch)
tree405225f90ba41244159deb8e3ee00dbc5a9de539 /Python/pythonrun.c
parenta25262d7735c966ca7459b13f78c609fd6d5d45a (diff)
downloadcpython-9d98677f926d47cb8e66c50733372e9da0bd85ee.tar.gz
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). ........
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 252b2d171b..c876fb55b8 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -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
{