ports/security/nyx/files/patch-test_____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
405 B
Python

--- test/__init__.py.orig 2024-11-18 07:14:15 UTC
+++ 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):