From 6555503f3ae3ce70367fb7756f333c1bbce07550 Mon Sep 17 00:00:00 2001 From: pawezka Date: Thu, 27 Jun 2024 14:28:08 +0200 Subject: [PATCH] Replace deprecated inspect.getargspec (#118) inspect.getargspec was deprecated since Python 3.0 and removed in Python 3.11 inspect.getfullargspec is its replacement --- src/main/python/RemoteSwingLibrary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/python/RemoteSwingLibrary.py b/src/main/python/RemoteSwingLibrary.py index 003893a..39374a9 100644 --- a/src/main/python/RemoteSwingLibrary.py +++ b/src/main/python/RemoteSwingLibrary.py @@ -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])):