Skip to content

Commit

Permalink
Merge pull request #2199 from jan-cerny/backport_python
Browse files Browse the repository at this point in the history
Python 3.13 compatibility
  • Loading branch information
matusmarhefka authored Feb 10, 2025
2 parents 123e2aa + 08c7fb6 commit 6ab2f6e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions swig/openscap.i
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ int rule_result_output_callback_wrapper(struct xccdf_rule_result* rule_result, v
PyGILState_Release(state);
return 1;
}
result = PyEval_CallObject(func,arglist);
result = PyObject_CallObject(func,arglist);
if (result == NULL) {
if (PyErr_Occurred() != NULL)
PyErr_PrintEx(0);
Expand Down Expand Up @@ -369,7 +369,7 @@ int rule_start_callback_wrapper(struct xccdf_rule* rule, void *arg)
PyGILState_Release(state);
return 1;
}
result = PyEval_CallObject(func,arglist);
result = PyObject_CallObject(func,arglist);
if (result == NULL) {
if (PyErr_Occurred() != NULL)
PyErr_PrintEx(0);
Expand Down Expand Up @@ -406,7 +406,7 @@ int agent_reporter_callback_wrapper(const struct oval_result_definition* res_def
PyGILState_Release(state);
return 1;
}
result = PyEval_CallObject(func,arglist);
result = PyObject_CallObject(func,arglist);
if (result == NULL) {
if (PyErr_Occurred() != NULL)
PyErr_PrintEx(0);
Expand Down Expand Up @@ -441,7 +441,7 @@ int validate_callback_wrapper(const char* file, int line, const char* msg, void
PyGILState_Release(state);
return 1;
}
result = PyEval_CallObject(func,arglist);
result = PyObject_CallObject(func,arglist);
if (result == NULL) {
if (PyErr_Occurred() != NULL)
PyErr_PrintEx(0);
Expand Down Expand Up @@ -477,7 +477,7 @@ char * sub_callback_wrapper(xccdf_subst_type_t type, const char *id, void *arg)
PyGILState_Release(state);
return NULL;
}
result = PyEval_CallObject(func, arglist);
result = PyObject_CallObject(func, arglist);
if (result == NULL) {
if (PyErr_Occurred() != NULL)
PyErr_PrintEx(0);
Expand Down

0 comments on commit 6ab2f6e

Please sign in to comment.