mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 19:06:10 +00:00
python: use proper way to return None (#3209)
This commit is contained in:
parent
7418f9c76c
commit
de0e55d684
@ -32,7 +32,7 @@ PyObject *api_refresh(PyObject *self, PyObject *args)
|
|||||||
Q_UNUSED(self);
|
Q_UNUSED(self);
|
||||||
Q_UNUSED(args);
|
Q_UNUSED(args);
|
||||||
Core()->triggerRefreshAll();
|
Core()->triggerRefreshAll();
|
||||||
return Py_None;
|
Py_RETURN_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
PyObject *api_message(PyObject *self, PyObject *args, PyObject *kwargs)
|
PyObject *api_message(PyObject *self, PyObject *args, PyObject *kwargs)
|
||||||
@ -46,8 +46,7 @@ PyObject *api_message(PyObject *self, PyObject *args, PyObject *kwargs)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
Core()->message(QString(message), debug);
|
Core()->message(QString(message), debug);
|
||||||
Py_INCREF(Py_None);
|
Py_RETURN_NONE;
|
||||||
return Py_None;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PyMethodDef CutterMethods[] = {
|
PyMethodDef CutterMethods[] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user