ports/security/nyx/files/patch-nyx_panel_____init____.py
Ruslan Makhmatkhanov 14bfcede4d security/nyx: fix runtime with python 3.11
switch to pep517 while here

taken from upstream commit:
https://github.com/torproject/nyx/commit/dcaddf2ab

PR:		281337
Reported by:	mdw
Approved by:	maintainer timeout
2024-11-18 10:22:56 +03:00

11 lines
455 B
Python

--- nyx/panel/__init__.py.orig 2024-11-18 07:13:38 UTC
+++ nyx/panel/__init__.py
@@ -78,7 +78,7 @@ class KeyHandler(collections.namedtuple('Help', ['key'
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()