Issue #21938: simplify gen_iternext()

This commit is contained in:
Antoine Pitrou 2014-07-08 18:43:23 -04:00
parent b44fc32661
commit 667f545e03
1 changed files with 1 additions and 5 deletions

View File

@ -377,11 +377,7 @@ failed_throw:
static PyObject *
gen_iternext(PyGenObject *gen)
{
PyObject *val = NULL;
PyObject *ret;
ret = gen_send_ex(gen, val, 0);
Py_XDECREF(val);
return ret;
return gen_send_ex(gen, NULL, 0);
}
/*