Debian Codegraph @

debian/patches/replace-getargspec.patch

raw
1 Description: replace getargspec with getfullargspec for Python 3.11
2 Author: Martin <[email protected]>
3 Origin: vendor
4 Last-Update: 2023-11-02
5 ---
6 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
7 --- a/libervia/backend/tools/utils.py
8 +++ b/libervia/backend/tools/utils.py
9 @@ -70,7 +70,7 @@
10 # making partial unusable with current D-bus module (in add_method).
11 # Should not be needed anywore once moved to Python 3
12
13 - ori_args = inspect.getargspec(func).args
14 + ori_args = inspect.getfullargspec(func).args
15 func = functools.partial(func, *fixed_args, **fixed_kwargs)
16 if ori_args[0] == "self":
17 del ori_args[0]