Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.13 compatibility #2126

Merged
merged 1 commit into from
Jun 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading