Created
May 5, 2023 14:29
-
-
Save inkeso/815a8d12f07cbeced8ebc517081f7f4d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/gajim/command_system/framework.py b/gajim/command_system/framework.py | |
index 34707a83f..cbafbe573 100644 | |
--- a/gajim/command_system/framework.py | |
+++ b/gajim/command_system/framework.py | |
@@ -20,7 +20,7 @@ | |
""" | |
from types import FunctionType | |
-from inspect import getargspec, getdoc | |
+from inspect import getfullargspec, getdoc | |
from gajim.command_system.dispatcher import Host | |
from gajim.command_system.dispatcher import Container | |
@@ -221,7 +221,7 @@ def extract_specification(self): | |
Extract handler's arguments specification, as it was defined | |
preserving their order. | |
""" | |
- names, var_args, var_kwargs, defaults = getargspec(self.handler) # pylint: disable=W1505 | |
+ names, var_args, var_kwargs, defaults = getfullargspec(self.handler) # pylint: disable=W1505 | |
# Behavior of this code need to be checked. Might yield | |
# incorrect results on some rare occasions. | |
diff --git a/test/lib/mock.py b/test/lib/mock.py | |
index 5f54a1209..9e61de1d4 100644 | |
--- a/test/lib/mock.py | |
+++ b/test/lib/mock.py | |
@@ -128,7 +128,7 @@ class with the given parameters would not fail. If it would fail, | |
func = self.realClassMethods[name] | |
try: | |
- args, varargs, varkw, defaults = inspect.getargspec(func) | |
+ args, varargs, varkw, defaults = inspect.getfullargspec(func) | |
except TypeError: | |
# func is not a Python function. It is probably a builtin, | |
# such as __repr__ or __coerce__. TODO: Checking? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment