aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-05-02 07:44:33 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-05-02 07:54:48 -0400
commit0fa35254c658ea2be9ed75893c5cd5b3aa389a1b (patch)
treef2a0ed8d7f4ac2c862e329d86942a26ca9e42be2
parentfc9fb7473c88b46bcd11144559f804e21911b87e (diff)
downloadkutter-0fa35254c658ea2be9ed75893c5cd5b3aa389a1b.tar.gz
kutter-0fa35254c658ea2be9ed75893c5cd5b3aa389a1b.tar.xz
kutter-0fa35254c658ea2be9ed75893c5cd5b3aa389a1b.zip
msgproto: Wrap strings passed via output() in repr()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--klippy/msgproto.py2
1 files changed, 2 insertions, 0 deletions
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