File: python3.13-build-fix.patch

package info (click to toggle)
ghmm 0.9~rc3-11.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,172 kB
  • sloc: ansic: 25,557; sh: 11,204; python: 6,739; xml: 1,515; makefile: 310
file content (15 lines) | stat: -rw-r--r-- 535 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Replace PyEval_CallObject with PyObject_CallObject deprecated in Python 3.9 and removed in Python 3.13
Author: Nilesh Patra <nilesh@debian.org>
Last-Update: 2025-01-14

--- a/ghmmwrapper/ghmmwrapper.i
+++ b/ghmmwrapper/ghmmwrapper.i
@@ -169,7 +169,7 @@
         // Build Python arguments
         arglist = Py_BuildValue("(is)", level, message);
         // Call Python
-        PyEval_CallObject(func, arglist);
+        PyObject_CallObject(func, arglist);
         // Trash arguments
         Py_DECREF(arglist);
     }