summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-02-11 12:43:10 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-02-11 12:43:10 +0100
commit34b42b260c71c5ce59b15ce21870ba36f3ffaae9 (patch)
tree4983d984acd6c4ee4e17244a1f56c9476a709a26
parent71fe28060ceb6c4dbb3fd844425b79955c64d7a0 (diff)
protocol_benchmarks: Fix ManualJSON list of strings codegen
-rwxr-xr-xlib/protocol_benchmarks.py2
1 files changed, 1 insertions, 1 deletions
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'