]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
fix last commit
authorMichael Schroeder <mls@suse.de>
Tue, 13 Feb 2024 15:13:52 +0000 (16:13 +0100)
committerMichael Schroeder <mls@suse.de>
Tue, 13 Feb 2024 15:13:52 +0000 (16:13 +0100)
Swig is weird.

bindings/solv.i

index 02831cf1bc1ac758e9dfa8d4fee53aef56028b65..372c862a66a8e6703e48a7d602d0950e6d61c11f 100644 (file)
@@ -1729,11 +1729,11 @@ 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
+#if PY_VERSION_HEX >= 0x03000000
     PyObject *result = PyObject_Call((PyObject *)d, args, NULL);
-%#else
+#else
     PyObject *result = PyEval_CallObject((PyObject *)d, args);
-%#endif
+#endif
 
     int ecode = 0;
     int vresult = 0;