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
|
Update the deprecated functions for python
--- newt-0.52.23/snack.c.orig 2026-05-27 12:52:32.785944840 +0200
+++ newt-0.52.23/snack.c 2026-05-27 12:17:34.944987036 +0200
@@ -456,7 +456,7 @@ static void helpCallbackMarshall(newtCom
PyGILState_STATE _state = PyGILState_Ensure();
args = Py_BuildValue("(O)", data);
- result = PyEval_CallObject(helpCallback.cb, args);
+ result = PyObject_CallObject(helpCallback.cb, args);
Py_DECREF (args);
Py_XDECREF(result);
@@ -473,10 +473,10 @@ static void suspendCallbackMarshall(void
if (scs->data) {
args = Py_BuildValue("(O)", scs->data);
- result = PyEval_CallObject(scs->cb, args);
+ result = PyObject_CallObject(scs->cb, args);
Py_DECREF (args);
} else
- result = PyEval_CallObject(scs->cb, NULL);
+ result = PyObject_CallObject(scs->cb, NULL);
if (!result) {
PyErr_Print();
@@ -498,10 +498,10 @@ static void callbackMarshall(newtCompone
if (scs->data) {
args = Py_BuildValue("(O)", scs->data);
- result = PyEval_CallObject(scs->cb, args);
+ result = PyObject_CallObject(scs->cb, args);
Py_DECREF (args);
} else
- result = PyEval_CallObject(scs->cb, NULL);
+ result = PyObject_CallObject(scs->cb, NULL);
if (!result) {
PyErr_Print();
|