mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
getargspec is deprecated in Python3
This commit is contained in:
parent
42d671b7c0
commit
8b360ac2e6
1 changed files with 2 additions and 2 deletions
|
@ -340,9 +340,9 @@ def is_unit_operation(
|
|||
# Indeed, we use convention naming in this decorator and we need to
|
||||
# know name of each args (so we need to use kwargs instead of args)
|
||||
if len(args) > 0:
|
||||
from inspect import getargspec
|
||||
from inspect import signature
|
||||
|
||||
keys = getargspec(func).args
|
||||
keys = list(signature(func).parameters.keys())
|
||||
if "operation_logger" in keys:
|
||||
keys.remove("operation_logger")
|
||||
for k, arg in enumerate(args):
|
||||
|
|
Loading…
Add table
Reference in a new issue