From cd7599210fe398360ddb81c0c2453a085d408089 Mon Sep 17 00:00:00 2001 From: Steve Grubb Date: Mon, 19 Feb 2024 10:50:42 -0500 Subject: [PATCH] Change python bindings to switch from PyEval_CallObject on 3.12 and later to silence warning Reference:https://github.com/linux-audit/audit-userspace/commit/cd7599210fe398360ddb81c0c2453a085d408089 Conflict:NA --- bindings/python/auparse_python.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/auparse_python.c b/bindings/python/auparse_python.c index 99d37cca..9ab919b3 100644 --- a/bindings/python/auparse_python.c +++ b/bindings/python/auparse_python.c @@ -290,7 +290,7 @@ static void auparse_callback(auparse_state_t *au, if (debug) printf("<< auparse_callback\n"); arglist = Py_BuildValue("OiO", cb->py_AuParser, cb_event_type, cb->user_data); -#if PY_MINOR_VERSION >= 13 +#if PY_MINOR_VERSION >= 12 result = PyObject_CallObject(cb->func, arglist); #else result = PyEval_CallObject(cb->func, arglist); -- 2.33.0