mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 10:56:11 +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(args);
|
||||
Core()->triggerRefreshAll();
|
||||
return Py_None;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
PyObject *api_message(PyObject *self, PyObject *args, PyObject *kwargs)
|
||||
@ -46,8 +46,7 @@ PyObject *api_message(PyObject *self, PyObject *args, PyObject *kwargs)
|
||||
return NULL;
|
||||
}
|
||||
Core()->message(QString(message), debug);
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
PyMethodDef CutterMethods[] = {
|
||||
|
Loading…
Reference in New Issue
Block a user