Skip to content

Commit

Permalink
Merge pull request #2126 from xambroz/patch-5
Browse files Browse the repository at this point in the history
Python 3.13 compatibility
  • Loading branch information
evgenyz authored Jun 18, 2024
2 parents a38689c + 851f33d commit 4acea91
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 @@ -318,7 +318,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 @@ -355,7 +355,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 @@ -392,7 +392,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 @@ -427,7 +427,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 @@ -463,7 +463,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 4acea91

Please sign in to comment.