From 34b42b260c71c5ce59b15ce21870ba36f3ffaae9 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 11 Feb 2019 12:43:10 +0100 Subject: protocol_benchmarks: Fix ManualJSON list of strings codegen --- lib/protocol_benchmarks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/protocol_benchmarks.py b/lib/protocol_benchmarks.py index b8d68cc..57fcb38 100755 --- a/lib/protocol_benchmarks.py +++ b/lib/protocol_benchmarks.py @@ -468,7 +468,7 @@ class ManualJSON(DummyProtocol): if len(value) and value[0] == '$': self.buf += 'bout << dec << {}'.format(value[1:]) else: - self.buf += 'bout << "\"{}\""'.format(value) + self.buf += 'bout << "\\"{}\\""'.format(value) elif type(value) == list: self.buf += 'bout << "[";\n' -- cgit v1.2.3