1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
Description: Replace PyEval_CallObject with PyObject_CallObject deprecated in Python 3.9 and removed in Python 3.13
Author: Orion Poplawski <orion@nwra.com>
Origin: other, https://sourceforge.net/u/opoplawski/plplot/ci/482ac69afcce02d1a17f8de2ed03e46174c7bb15/
Forwarded: not-needed
Reviewed-By: Rafael Laboissière <rafael@debian.org>
Last-Update: 2024-09-22
--- plplot-5.15.0+dfsg2.orig/bindings/python/plplotc.i
+++ plplot-5.15.0+dfsg2/bindings/python/plplotc.i
@@ -1035,7 +1035,7 @@ typedef void ( *label_func )( PLINT, PLF
return;
}
// call the python function
- result = PyEval_CallObject( python_pltr, arglist );
+ result = PyObject_CallObject( python_pltr, arglist );
// release the argument list
Py_CLEAR( arglist );
// check and unpack the result
@@ -1084,7 +1084,7 @@ typedef void ( *label_func )( PLINT, PLF
// build the argument list
arglist = Py_BuildValue( "(iiO)", x, y, pdata );
// call the python function
- result = PyEval_CallObject( python_f2eval, arglist );
+ result = PyObject_CallObject( python_f2eval, arglist );
// release the argument list
Py_CLEAR( arglist );
// check and unpack the result
@@ -1128,7 +1128,7 @@ typedef void ( *label_func )( PLINT, PLF
arglist = Py_BuildValue( "(lfO)", axis, value, pdata );
#endif
// call the python function
- result = PyEval_CallObject( python_label, arglist );
+ result = PyObject_CallObject( python_label, arglist );
// release the argument list
//Py_CLEAR(arglist);
// check and unpack the result
@@ -1185,7 +1185,7 @@ typedef void ( *label_func )( PLINT, PLF
py = PyArray_SimpleNewFromData( 1, &n, NPY_PLFLT, (void *) yt );
arglist = Py_BuildValue( "(ddOOO)", x, y, px, py, pdata );
// call the python function
- result = PyEval_CallObject( python_ct, arglist );
+ result = PyObject_CallObject( python_ct, arglist );
// release the argument list
Py_CLEAR( arglist );
Py_CLEAR( px );
@@ -1226,7 +1226,7 @@ typedef void ( *label_func )( PLINT, PLF
#endif
arglist = Py_BuildValue( "(iOO)", n, px, py );
// call the python function
- result = PyEval_CallObject( python_mapform, arglist );
+ result = PyObject_CallObject( python_mapform, arglist );
// release the argument list
Py_CLEAR( arglist );
Py_CLEAR( px );
|