With METH_NOARGS, args is NULL, and thus PyArg_ParseTuple()
will segfault. Remove it, since it's unnecessary anyway.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
static PyObject *
bup_get_completer_word_break_characters(PyObject *self, PyObject *args)
{
- if (!PyArg_ParseTuple(args, ""))
- return NULL;
return PyBytes_FromString(rl_completer_word_break_characters);
}
static PyObject *bup_get_line_buffer(PyObject *self, PyObject *args)
{
- if (!PyArg_ParseTuple(args, ""))
- return NULL;
return PyBytes_FromString(rl_line_buffer);
}