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

Skip to content

Commit 0a239e9

Browse files
committed
Fix compilation with C89 compilers (Windows...)
1 parent e557da8 commit 0a239e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/ceval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1837,6 +1837,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
18371837
/* x is now the iterator, make the first next() call */
18381838
retval = (*Py_TYPE(x)->tp_iternext)(x);
18391839
if (!retval) {
1840+
PyObject *et, *ev, *tb;
18401841
/* iter may be exhausted */
18411842
Py_CLEAR(x);
18421843
if (PyErr_Occurred() &&
@@ -1845,7 +1846,6 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
18451846
break;
18461847
}
18471848
/* try to get return value from exception */
1848-
PyObject *et, *ev, *tb;
18491849
PyErr_Fetch(&et, &ev, &tb);
18501850
Py_XDECREF(et);
18511851
Py_XDECREF(tb);

0 commit comments

Comments
 (0)