Skip to content

Commit

Permalink
Always use PyObject_Call as suggested by Jan Kolarik
Browse files Browse the repository at this point in the history
PyObject_Call is available since python 2.2
  • Loading branch information
mlschroe committed Feb 13, 2024
1 parent e0d0438 commit 40ac28e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions bindings/solv.i
Original file line number Diff line number Diff line change
Expand Up @@ -1729,11 +1729,7 @@ returnself(matchsolvable)
SWIGINTERN int loadcallback(Pool *pool, Repodata *data, void *d) {
XRepodata *xd = new_XRepodata(data->repo, data->repodataid);
PyObject *args = Py_BuildValue("(O)", SWIG_NewPointerObj(SWIG_as_voidptr(xd), SWIGTYPE_p_XRepodata, SWIG_POINTER_OWN | 0));
#if PY_VERSION_HEX >= 0x03000000
PyObject *result = PyObject_Call((PyObject *)d, args, NULL);
#else
PyObject *result = PyEval_CallObject((PyObject *)d, args);
#endif

int ecode = 0;
int vresult = 0;
Expand Down

0 comments on commit 40ac28e

Please sign in to comment.