Projects
Mega:24.09
audit
_service:tar_scm:backport-Change-python-binding...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:backport-Change-python-bindings-to-switch-from-PyEval_CallObj.patch of Package audit
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 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
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2