From 0008a106d4f84206a96fc1fb09a1e6b09f1627ec Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 29 Sep 2017 16:50:01 -0400 Subject: Use Py_RETURN_NONE where suitable This is more idiomatic style and available as of Python 2.4, which is our minimum. --- src/pl/plpython/plpy_subxactobject.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/pl/plpython/plpy_subxactobject.c') diff --git a/src/pl/plpython/plpy_subxactobject.c b/src/pl/plpython/plpy_subxactobject.c index 9f1caa87d94..331d2b859c0 100644 --- a/src/pl/plpython/plpy_subxactobject.c +++ b/src/pl/plpython/plpy_subxactobject.c @@ -212,6 +212,5 @@ PLy_subtransaction_exit(PyObject *self, PyObject *args) CurrentResourceOwner = subxactdata->oldowner; pfree(subxactdata); - Py_INCREF(Py_None); - return Py_None; + Py_RETURN_NONE; } -- cgit v1.2.3