This is an automated email from the git hooks/post-receive script.
atagar pushed a commit to branch master in repository nyx.
The following commit(s) were added to refs/heads/master by this push: new dcaddf2 Replace inspect.getargspec usage to support python 3.11 dcaddf2 is described below
commit dcaddf2ab7f9d2ef8649f98bb6870995ebe0b893 Author: Juan Orti Alcaine jortialc@redhat.com AuthorDate: Mon Jun 27 19:38:34 2022 +0200
Replace inspect.getargspec usage to support python 3.11 --- nyx/panel/__init__.py | 2 +- test/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/nyx/panel/__init__.py b/nyx/panel/__init__.py index 57ae1e3..99b36d3 100644 --- a/nyx/panel/__init__.py +++ b/nyx/panel/__init__.py @@ -78,7 +78,7 @@ class KeyHandler(collections.namedtuple('Help', ['key', 'description', 'current' is_match = self._key_func(key) if self._key_func else key.match(self.key)
if is_match: - if inspect.getargspec(self._action).args == ['key']: + if inspect.getfullargspec(self._action).args == ['key']: self._action(key) else: self._action() diff --git a/test/__init__.py b/test/__init__.py index b259f7b..d9f0875 100644 --- a/test/__init__.py +++ b/test/__init__.py @@ -94,7 +94,7 @@ def render(func, *args, **kwargs): nyx.curses.CURSES_SCREEN.erase() start_time = time.time()
- func_args = inspect.getargspec(func).args + func_args = inspect.getfullargspec(func).args
if func_args[:1] == ['subwindow'] or func_args[:2] == ['self', 'subwindow']: def _draw(subwindow):