# HG changeset patch # User Goffi # Date 1473500612 -7200 # Node ID 741db5abf077db5e737e197dd730e7671633f719 # Parent 7834743705f09bf93e6ae76ce9acdbb08ad0adc5 jp (debug/bridge/method,signal): fixed argument parsing diff -r 7834743705f0 -r 741db5abf077 frontends/src/jp/cmd_debug.py --- 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: