Commit 74674d64 authored by Stefan Behnel's avatar Stefan Behnel

fix one more helper function after PyThreadState_GET() change

parent 832da3bf
......@@ -238,6 +238,8 @@ static void __Pyx_Generator_Replace_StopIteration(void) {
PyObject *exc, *val, *tb;
// Chain exceptions by moving StopIteration to exc_info before creating the RuntimeError.
// In Py2.x, no chaining happens, but the exception still stays visible in exc_info.
__Pyx_PyThreadState_declare
__Pyx_PyThreadState_assign
__Pyx_GetException(&exc, &val, &tb);
Py_XDECREF(exc);
Py_XDECREF(val);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment