diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-02-11 12:43:10 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-02-11 12:43:10 +0100 |
commit | 34b42b260c71c5ce59b15ce21870ba36f3ffaae9 (patch) | |
tree | 4983d984acd6c4ee4e17244a1f56c9476a709a26 /lib | |
parent | 71fe28060ceb6c4dbb3fd844425b79955c64d7a0 (diff) |
protocol_benchmarks: Fix ManualJSON list of strings codegen
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/protocol_benchmarks.py | 2 |
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' |