msgproto: Wrap strings passed via output() in repr()

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2017-05-02 07:44:33 -04:00
parent fc9fb7473c
commit 0fa35254c6
1 changed files with 2 additions and 0 deletions

View File

@ -162,6 +162,8 @@ class OutputFormat:
out = []
for t in self.param_types:
v, pos = t.parse(s, pos)
if not t.is_int:
v = repr(v)
out.append(v)
outmsg = self.debugformat % tuple(out)
return {'#msg': outmsg}, pos