pylibmount: PyEval_Call* is deprecate, use PyObject_Call*
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
ff3a3c3c49
commit
f823700f61
1 changed files with 1 additions and 1 deletions
|
@ -659,7 +659,7 @@ int pymnt_table_parser_errcb(struct libmnt_table *tb, const char *filename, int
|
|||
return -ENOMEM;
|
||||
|
||||
/* A python callback was set, so tb is definitely encapsulated in an object */
|
||||
result = PyEval_CallObject(((TableObject *)obj)->errcb, arglist);
|
||||
result = PyObject_Call(((TableObject *)obj)->errcb, arglist, NULL);
|
||||
Py_DECREF(arglist);
|
||||
|
||||
if (!result)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue