Mercurial > libervia-backend
comparison libervia/cli/cmd_debug.py @ 4101:4ed8de94c926
cli (debug): fix deprecated method call
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 23 Jun 2023 15:18:43 +0200 |
parents | 47401850dec6 |
children |
comparison
equal
deleted
inserted
replaced
4100:810921c33a47 | 4101:4ed8de94c926 |
---|---|
57 | 57 |
58 async def start(self): | 58 async def start(self): |
59 method = getattr(self.host.bridge, self.args.method) | 59 method = getattr(self.host.bridge, self.args.method) |
60 import inspect | 60 import inspect |
61 | 61 |
62 argspec = inspect.getargspec(method) | 62 argspec = inspect.getfullargspec(method) |
63 | 63 |
64 kwargs = {} | 64 kwargs = {} |
65 if "profile_key" in argspec.args: | 65 if "profile_key" in argspec.args: |
66 kwargs["profile_key"] = self.profile | 66 kwargs["profile_key"] = self.profile |
67 elif "profile" in argspec.args: | 67 elif "profile" in argspec.args: |