mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Fix compilation with C89 compilers (Windows...)
This commit is contained in:
parent
e557da804a
commit
0a239e9191
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue