diff options
| author | Sébastien Dailly <sebastien@dailly.me> | 2026-05-30 09:58:45 +0200 |
|---|---|---|
| committer | Sébastien Dailly <sebastien@dailly.me> | 2026-05-30 09:58:45 +0200 |
| commit | 8b2420f74367e4973be0dd9556c021588abfe591 (patch) | |
| tree | b95fbf8d5aefc51f619b2506d8ae75ee9f29b75b /patches | |
Initial commit
Diffstat (limited to 'patches')
| -rw-r--r-- | patches/newt/001-python-snack.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/patches/newt/001-python-snack.patch b/patches/newt/001-python-snack.patch new file mode 100644 index 0000000..d1a23ba --- /dev/null +++ b/patches/newt/001-python-snack.patch @@ -0,0 +1,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(); |
