msgproto: Wrap strings passed via output() in repr()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
fc9fb7473c
commit
0fa35254c6
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue