diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-11-18 11:17:51 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-11-18 11:17:51 +0200 |
commit | f6b5a7f622c0b34fc261cc0c27b596730d9597dd (patch) | |
tree | 6d7f43470b1360d500991a6beba0edafae6b60d2 /python/rpmmodule.c | |
parent | 841e0ad4ee360bf43acb1adb2b86977d7b74abe1 (diff) | |
download | librpm-tizen-f6b5a7f622c0b34fc261cc0c27b596730d9597dd.tar.gz librpm-tizen-f6b5a7f622c0b34fc261cc0c27b596730d9597dd.tar.bz2 librpm-tizen-f6b5a7f622c0b34fc261cc0c27b596730d9597dd.zip |
Rip python checkSignals() wtf'ery
- since the function takes no arguments, declare it as such...
Diffstat (limited to 'python/rpmmodule.c')
-rw-r--r-- | python/rpmmodule.c | 5 |
1 files changed, 2 insertions, 3 deletions
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, |