diff options
author | François Andriot <[email protected]> | 2024-09-26 15:29:35 +0200 |
---|---|---|
committer | François Andriot <[email protected]> | 2024-09-26 15:29:35 +0200 |
commit | 0e74dd2dcc32727fcd97c44f2341711fe8a27d8c (patch) | |
tree | 98be1e1d53e55af8ca876707584eecd320e347de /kig | |
parent | a7d7c2df584999dd44f6185c261a987bbc107e8b (diff) | |
download | tdeedu-0e74dd2dcc32727fcd97c44f2341711fe8a27d8c.tar.gz tdeedu-0e74dd2dcc32727fcd97c44f2341711fe8a27d8c.zip |
Fix FTBFS with Python 3.13.
This solves issue #46.
Signed-off-by: François Andriot <[email protected]>
Diffstat (limited to 'kig')
-rw-r--r-- | kig/scripting/python_scripter.cpp | 4 |
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 ); |