Issue #21938: simplify gen_iternext()
This commit is contained in:
parent
b44fc32661
commit
667f545e03
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue