Description: replace getargspec with getfullargspec for Python 3.11
Author: Martin <debacle@debian.org>
Origin: vendor
Last-Update: 2023-02-07
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/sat_frontends/jp/cmd_debug.py
+++ b/sat_frontends/jp/cmd_debug.py
@@ -59,7 +59,7 @@
         method = getattr(self.host.bridge, self.args.method)
         import inspect
 
-        argspec = inspect.getargspec(method)
+        argspec = inspect.getfullargspec(method)
 
         kwargs = {}
         if "profile_key" in argspec.args:
--- a/sat/tools/utils.py
+++ b/sat/tools/utils.py
@@ -70,7 +70,7 @@
     #        making partial unusable with current D-bus module (in addMethod).
     #        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]
