File: py3.13.patch

package info (click to toggle)
libgetdata 0.11.0-16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,144 kB
  • sloc: ansic: 100,814; cpp: 4,843; fortran: 4,548; f90: 2,561; python: 2,406; perl: 2,274; makefile: 1,487; php: 1,465; sh: 86
file content (22 lines) | stat: -rw-r--r-- 796 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Handle call removed in python3.13
Author: Alastair McKinstry <mckinstry@debian.org>
Last-Updated: 2024-11-18
Forwarded: no
Bug-Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1087682

Index: libgetdata-0.11.0/bindings/python/pydirfile.c
===================================================================
--- libgetdata-0.11.0.orig/bindings/python/pydirfile.c
+++ libgetdata-0.11.0/bindings/python/pydirfile.c
@@ -132,7 +132,10 @@ static int gdpy_callback_func(gd_parser_
       return GD_SYNTAX_ABORT;
     }
 
-    result = PyEval_CallObject(self->callback, arglist);
+    // dropped in py3.13
+    // result = PyEval_CallObject(self->callback, arglist);
+    result = PyObject_Call(self->callback, arglist, NULL);
+    
     Py_DECREF(arglist);
 
     /* result may be: