File: replace-getargspec.patch

package info (click to toggle)
libervia-backend 0.9.0~hg4352-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,752 kB
  • sloc: python: 108,376; xml: 102; sh: 47; makefile: 45
file content (17 lines) | stat: -rw-r--r-- 673 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: replace getargspec with getfullargspec for Python 3.11
Author: Martin <debacle@debian.org>
Origin: vendor
Last-Update: 2023-11-02
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/libervia/backend/tools/utils.py
+++ b/libervia/backend/tools/utils.py
@@ -70,7 +70,7 @@
     #        making partial unusable with current D-bus module (in add_method).
     #        Should not be needed anywore once moved to Python 3
 
-    ori_args = inspect.getargspec(func).args
+    ori_args = inspect.getfullargspec(func).args
     func = functools.partial(func, *fixed_args, **fixed_kwargs)
     if ori_args[0] == "self":
         del ori_args[0]