mirror of
https://github.com/postgres/postgres.git
synced 2025-08-18 12:22:09 +03:00
Use Py_RETURN_NONE where suitable
This is more idiomatic style and available as of Python 2.4, which is our minimum.
This commit is contained in:
@@ -509,6 +509,5 @@ PLy_cursor_close(PyObject *self, PyObject *unused)
|
||||
cursor->closed = true;
|
||||
}
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user