Replace deprecated getargspec with getfullargspec

This commit is contained in:
Brendan Reilly
2022-12-19 13:45:46 -05:00
parent ac2a338786
commit 6b43180229

View File

@@ -31,7 +31,7 @@ def route_task(name, args, kwargs, options, task=None, **kw):
# handlers can be decorated, inspect the original function
while getattr(handler, "__wrapped__", None):
handler = handler.__wrapped__
handler_args = inspect.getargspec(handler).args
handler_args = inspect.getfullargspec(handler).args
def _get_handler_arg(name):
index = handler_args.index(name)