diff options
Diffstat (limited to 'Objects/genobject.c')
-rw-r--r-- | Objects/genobject.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Objects/genobject.c b/Objects/genobject.c index 831b15d..4be739a 100644 --- a/Objects/genobject.c +++ b/Objects/genobject.c @@ -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); } /* |