mirror of
https://git.kore.io/kore.git
synced 2024-11-16 06:56:33 +01:00
Simplify python_push_integer().
We're not doing anything with ret, so kill it.
This commit is contained in:
parent
a7aa51d8d5
commit
a65be853f0
@ -1789,9 +1789,7 @@ python_push_type(const char *name, PyObject *module, PyTypeObject *type)
|
||||
static void
|
||||
python_push_integer(PyObject *module, const char *name, long value)
|
||||
{
|
||||
int ret;
|
||||
|
||||
if ((ret = PyModule_AddIntConstant(module, name, value)) == -1)
|
||||
if (PyModule_AddIntConstant(module, name, value) == -1)
|
||||
fatal("python_push_integer: failed to add %s", name);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user