From f6b5a7f622c0b34fc261cc0c27b596730d9597dd Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 18 Nov 2009 11:17:51 +0200 Subject: Rip python checkSignals() wtf'ery - since the function takes no arguments, declare it as such... --- python/rpmmodule.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'python/rpmmodule.c') diff --git a/python/rpmmodule.c b/python/rpmmodule.c index 68042967b..13ef9bcb8 100644 --- a/python/rpmmodule.c +++ b/python/rpmmodule.c @@ -44,9 +44,8 @@ static PyObject * signalCaught(PyObject *self, PyObject *o) return PyBool_FromLong(rpmsqIsCaught(signo)); } -static PyObject * checkSignals(PyObject * self, PyObject * args) +static PyObject * checkSignals(PyObject * self) { - if (!PyArg_ParseTuple(args, ":checkSignals")) return NULL; rpmdbCheckSignals(); Py_RETURN_NONE; } @@ -135,7 +134,7 @@ static PyMethodDef rpmModuleMethods[] = { { "signalCaught", (PyCFunction) signalCaught, METH_O, NULL }, - { "checkSignals", (PyCFunction) checkSignals, METH_VARARGS, + { "checkSignals", (PyCFunction) checkSignals, METH_NOARGS, NULL }, { "mergeHeaderListFromFD", (PyCFunction) rpmMergeHeadersFromFD, METH_VARARGS|METH_KEYWORDS, -- cgit v1.2.3