From 0fa35254c658ea2be9ed75893c5cd5b3aa389a1b Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 2 May 2017 07:44:33 -0400 Subject: [PATCH] msgproto: Wrap strings passed via output() in repr() Signed-off-by: Kevin O'Connor --- klippy/msgproto.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/klippy/msgproto.py b/klippy/msgproto.py index abb3dcd8..24f577f4 100644 --- a/klippy/msgproto.py +++ b/klippy/msgproto.py @@ -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