diff python/pydc/pydc.c @ 65:75a4082f0fce

- refactoring of deprecated/removed func PyEval_CallObject()
author Tassilo Philipp
date Sun, 19 May 2024 15:45:13 +0200
parents 9b6cdffd30dd
children 7a61dd082341
line wrap: on
line diff
--- a/python/pydc/pydc.c	Sun May 19 15:35:03 2024 +0200
+++ b/python/pydc/pydc.c	Sun May 19 15:45:13 2024 +0200
@@ -592,7 +592,6 @@
 /* generic callback handler dispatching to python */
 static char handle_py_callbacks(DCCallback* pcb, DCArgs* args, DCValue* result, void* userdata)
 {
-
 	struct callback_userdata* x = (struct callback_userdata*)userdata;
 	const char* sig_ptr = x->sig;
 
@@ -634,7 +633,7 @@
 		// we must be at end of sigstring, here
 		if(ch == ')')
 		{
-			po = PyEval_CallObject(x->f, py_args);
+			po = PyObject_CallObject(x->f, py_args);
 			if(po)
 			{
 				// return value type