summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2012-01-13 20:08:49 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2012-01-13 20:08:49 (GMT)
commit0a239e9191e7a33b73abf843c2f9c3cc0c6eeab2 (patch)
tree4ac30f8aa3be53dbf54da217b40e8b17fb473e7f /Python
parente557da804aae6ae6478809243c349659f5c3e722 (diff)
downloadcpython-0a239e9191e7a33b73abf843c2f9c3cc0c6eeab2.zip
cpython-0a239e9191e7a33b73abf843c2f9c3cc0c6eeab2.tar.gz
cpython-0a239e9191e7a33b73abf843c2f9c3cc0c6eeab2.tar.bz2
Fix compilation with C89 compilers (Windows...)
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 98219b0..e2d96c5 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -1837,6 +1837,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
/* x is now the iterator, make the first next() call */
retval = (*Py_TYPE(x)->tp_iternext)(x);
if (!retval) {
+ PyObject *et, *ev, *tb;
/* iter may be exhausted */
Py_CLEAR(x);
if (PyErr_Occurred() &&
@@ -1845,7 +1846,6 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
break;
}
/* try to get return value from exception */
- PyObject *et, *ev, *tb;
PyErr_Fetch(&et, &ev, &tb);
Py_XDECREF(et);
Py_XDECREF(tb);