31 lines
1.0 KiB
Diff
31 lines
1.0 KiB
Diff
From cd7599210fe398360ddb81c0c2453a085d408089 Mon Sep 17 00:00:00 2001
|
|
From: Steve Grubb <ausearch.1@gmail.com>
|
|
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 bdcf816..f7b5f56 100644
|
|
--- a/bindings/python/auparse_python.c
|
|
+++ b/bindings/python/auparse_python.c
|
|
@@ -291,7 +291,7 @@ static void auparse_callback(auparse_state_t *au, auparse_cb_event_t cb_event_ty
|
|
PyObject *result;
|
|
|
|
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.43.0
|
|
|