]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
pylibmount: PyEval_Call* is deprecate, use PyObject_Call*
authorKarel Zak <kzak@redhat.com>
Mon, 15 Mar 2021 15:37:47 +0000 (16:37 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 15 Mar 2021 15:37:47 +0000 (16:37 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/python/tab.c

index 5fce90aef1c0a00a41f5504e514157d7f820c0b2..000bc131c3163b78e426a2259a70fe443c5a80eb 100644 (file)
@@ -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)