Mercurial > libervia-backend
changeset 2068:741db5abf077
jp (debug/bridge/method,signal): fixed argument parsing
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 10 Sep 2016 11:43:32 +0200 |
parents | 7834743705f0 |
children | 528e5fafc11b |
files | frontends/src/jp/cmd_debug.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/frontends/src/jp/cmd_debug.py Fri Sep 09 23:54:33 2016 +0200 +++ b/frontends/src/jp/cmd_debug.py Sat Sep 10 11:43:32 2016 +0200 @@ -31,7 +31,7 @@ def evalArgs(self): if self.args.arg: try: - return eval(u",".join(self.args.arg)) + return eval(u'[{}]'.format(u",".join(self.args.arg))) except SyntaxError as e: self.disp(u"Can't evaluate arguments: {mess}\n{text}\n{offset}^".format( mess=e, @@ -67,7 +67,7 @@ method = getattr(self.host.bridge, self.args.method) args = self.evalArgs() try: - method(*self.args.arg, profile=self.profile, callback=self.method_cb, errback=self.method_eb) + method(*args, profile=self.profile, callback=self.method_cb, errback=self.method_eb) except TypeError: # maybe the method doesn't need a profile ? try: