diff --git a/pabot/robotremoteserver.py b/pabot/robotremoteserver.py index 340339ee..88b2f804 100644 --- a/pabot/robotremoteserver.py +++ b/pabot/robotremoteserver.py @@ -326,7 +326,7 @@ def get_keyword_arguments(self, name): if __name__ == "__init__": return [] kw = self._get_keyword(name) - args, varargs, kwargs, defaults = inspect.getargspec(kw) + args, varargs, kwargs, defaults = inspect.getfullargspec(kw) if inspect.ismethod(kw): args = args[1:] # drop 'self' if defaults: @@ -386,7 +386,7 @@ def __init__(self, library, get_keyword_names, run_keyword): self._get_keyword_tags = dynamic_method(library, "get_keyword_tags") def _get_kwargs_support(self, run_keyword): - spec = inspect.getargspec(run_keyword) + spec = inspect.getfullargspec(run_keyword) return len(spec.args) > 3 # self, name, args, kwargs=None def run_keyword(self, name, args, kwargs=None):