diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2017-09-29 16:50:01 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2017-09-29 16:51:39 -0400 |
commit | 0008a106d4f84206a96fc1fb09a1e6b09f1627ec (patch) | |
tree | 8d6f2a3465e231550af4d17a00f80f6d5631a705 /src/pl/plpython/plpy_subxactobject.c | |
parent | 19de0ab23ccba12567c18640f00b49f01471018d (diff) |
Use Py_RETURN_NONE where suitable
This is more idiomatic style and available as of Python 2.4, which is
our minimum.
Diffstat (limited to 'src/pl/plpython/plpy_subxactobject.c')
-rw-r--r-- | src/pl/plpython/plpy_subxactobject.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; } |