Skip to content

Commit

Permalink
getargspec fix (#120)
Browse files Browse the repository at this point in the history
* increase version to 2.3.3

* replace getfullargspec with getargspec

* added check if is python3

---------

Co-authored-by: Pawel Pawezka <[email protected]>
  • Loading branch information
pawezka and PawelPawezka authored Jun 27, 2024
1 parent 6555503 commit 1472dfc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/python/RemoteSwingLibrary.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def _tobool(value):
return str(value).lower() in ("true", "1", "yes")


__version__ = '2.3.2'
__version__ = '2.3.3'


class RemoteSwingLibrary(object):
Expand Down Expand Up @@ -630,7 +630,10 @@ def get_keyword_arguments(self, name):
return swinglibrary.keyword_arguments[name]

def _get_args(self, method_name):
spec = inspect.getfullargspec(getattr(self, method_name))
if IS_PYTHON3:
spec = inspect.getfullargspec(getattr(self, method_name))
else:
spec = inspect.getargspec(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 1472dfc

Please sign in to comment.