| 1 | Patch-Source: https://src.fedoraproject.org/rpms/med/raw/rawhide/f/med-swig-4.3.0.patch
|
| 2 |
|
| 3 | diff -rupN --no-dereference med-5.0.0/python/med_enumtest_typemap.i med-5.0.0-new/python/med_enumtest_typemap.i
|
| 4 | |
| 5 | |
| 6 | @@ -128,7 +128,7 @@ public:
|
| 7 | if (pclass == NULL) printf("%s\n","Can't get class $1_basetype");
|
| 8 | Py_DECREF(pmod);
|
| 9 | pargs = Py_BuildValue("(i)",*$1);
|
| 10 | - pinst = PyEval_CallObject(pclass, pargs);
|
| 11 | + pinst = PyObject_CallObject(pclass, pargs);
|
| 12 | if (pinst == NULL) printf("%s\n","Can't instanciate class $1_basetype");
|
| 13 | $result=SWIG_Python_AppendOutput($result, pinst);
|
| 14 | }
|
| 15 | diff -rupN --no-dereference med-5.0.0/python/med_enum_typemap.i med-5.0.0-new/python/med_enum_typemap.i
|
| 16 | |
| 17 | |
| 18 | @@ -109,7 +109,7 @@ Type.__repr__= lambda self: #Type +"("+s
|
| 19 | if (pclass == NULL) printf("%s\n","Can't get class $1_basetype");
|
| 20 | Py_DECREF(pmod);
|
| 21 | pargs = Py_BuildValue("(i)",*$1);
|
| 22 | - pinst = PyEval_CallObject(pclass, pargs);
|
| 23 | + pinst = PyObject_CallObject(pclass, pargs);
|
| 24 | if (pinst == NULL) printf("%s\n","Can't instanciate class $1_basetype");
|
| 25 | $result=SWIG_Python_AppendOutput($result, pinst);
|
| 26 | }
|