From a9f38fadf149f8d28cf932fe8ecf7f4b28c0d0fa Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 10 Dec 2010 23:57:30 +0100 Subject: [PATCH] no need to own an argument passed into a Python function --- Cython/Compiler/ExprNodes.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index f66d6abd..1c3939f7 100755 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -8347,13 +8347,7 @@ static CYTHON_INLINE PyObject *__CyGenerator_SendEx(struct __CyGenerator *self, static PyObject *__CyGenerator_Next(PyObject *self) { - struct __CyGenerator *generator = (struct __CyGenerator *) self; - PyObject *retval; - - Py_INCREF(Py_None); - retval = __CyGenerator_SendEx(generator, Py_None); - Py_DECREF(Py_None); - return retval; + return __CyGenerator_SendEx((struct __CyGenerator *) self, Py_None); } static PyObject *__CyGenerator_Send(PyObject *self, PyObject *value) -- 2.26.2