summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2024-09-26 15:29:35 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2024-09-26 15:29:35 +0200
commit0e74dd2dcc32727fcd97c44f2341711fe8a27d8c (patch)
tree98be1e1d53e55af8ca876707584eecd320e347de
parenta7d7c2df584999dd44f6185c261a987bbc107e8b (diff)
downloadtdeedu-0e74dd2dcc32727fcd97c44f2341711fe8a27d8c.tar.gz
tdeedu-0e74dd2dcc32727fcd97c44f2341711fe8a27d8c.zip
Fix FTBFS with Python 3.13.
This solves issue #46. Signed-off-by: François Andriot <albator78@libertysurf.fr>
-rw-r--r--kig/scripting/python_scripter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kig/scripting/python_scripter.cpp b/kig/scripting/python_scripter.cpp
index 00c7e162..f39d7121 100644
--- a/kig/scripting/python_scripter.cpp
+++ b/kig/scripting/python_scripter.cpp
@@ -495,9 +495,9 @@ ObjectImp* PythonScripter::calc( CompiledPythonScript& script, const Args& args
};
tuple argstup( argstuph );
- handle<> reth( PyEval_CallObject( calcfunc.ptr(), argstup.ptr() ) );
+ handle<> reth( PyObject_CallObject( calcfunc.ptr(), argstup.ptr() ) );
// object resulto = calcfunc( argstup );
-// handle<> reth( PyEval_CallObject( calcfunc.ptr(), args ) );
+// handle<> reth( PyObject_CallObject( calcfunc.ptr(), args ) );
object resulto( reth );
extract<ObjectImp&> result( resulto );