Commit 0008a106 authored by Peter Eisentraut's avatar Peter Eisentraut

Use Py_RETURN_NONE where suitable

This is more idiomatic style and available as of Python 2.4, which is
our minimum.
parent 19de0ab2
......@@ -509,6 +509,5 @@ PLy_cursor_close(PyObject *self, PyObject *unused)
cursor->closed = true;
}
Py_INCREF(Py_None);
return Py_None;
Py_RETURN_NONE;
}
......@@ -575,6 +575,5 @@ PLy_output(volatile int level, PyObject *self, PyObject *args, PyObject *kw)
/*
* return a legal object so the interpreter will continue on its merry way
*/
Py_INCREF(Py_None);
return Py_None;
Py_RETURN_NONE;
}
......@@ -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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment