msgproto: Wrap strings passed via output() in repr()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -162,6 +162,8 @@ class OutputFormat:
|
|||||||
out = []
|
out = []
|
||||||
for t in self.param_types:
|
for t in self.param_types:
|
||||||
v, pos = t.parse(s, pos)
|
v, pos = t.parse(s, pos)
|
||||||
|
if not t.is_int:
|
||||||
|
v = repr(v)
|
||||||
out.append(v)
|
out.append(v)
|
||||||
outmsg = self.debugformat % tuple(out)
|
outmsg = self.debugformat % tuple(out)
|
||||||
return {'#msg': outmsg}, pos
|
return {'#msg': outmsg}, pos
|
||||||
|
|||||||
Reference in New Issue
Block a user