Skip to content

Commit

Permalink
Replace deprecated inspect.getargspec (#118)
Browse files Browse the repository at this point in the history
inspect.getargspec was deprecated since Python 3.0 and removed in Python 3.11
inspect.getfullargspec is its replacement
  • Loading branch information
pawezka authored Jun 27, 2024
1 parent 91aa61e commit 6555503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/python/RemoteSwingLibrary.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ def get_keyword_arguments(self, name):
return swinglibrary.keyword_arguments[name]

def _get_args(self, method_name):
spec = inspect.getargspec(getattr(self, method_name))
spec = inspect.getfullargspec(getattr(self, method_name))
args = spec[0][1:]
if spec[3]:
for i, item in enumerate(reversed(spec[3])):
Expand Down

0 comments on commit 6555503

Please sign in to comment.