Skip to content

Commit

Permalink
Replace deprecated PyEval_CallObject
Browse files Browse the repository at this point in the history
PyEval_CallObject is deprecated and is
removed in Python 3.13. Replace with PyObject_Call.
  • Loading branch information
benmwebb committed Oct 12, 2024
1 parent 4ff5cd4 commit 0227a42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyext/mdt_callbacks.i
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ static float *python_cb_get_property(gpointer data,
return NULL;
}

result = PyEval_CallObject(func, arglist);
result = PyObject_Call(func, arglist, NULL);
Py_DECREF(arglist);

if (result) {
Expand Down

0 comments on commit 0227a42

Please # to comment.