summaryrefslogtreecommitdiff
path: root/lib/protocol_benchmarks.py
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-25 08:15:53 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-03-25 08:15:53 +0100
commit250e0b1afbbf27d0ddff63a12d649a1a186e9c20 (patch)
tree0ae409f6340da6a04fd4b5286d377206c69c3ce7 /lib/protocol_benchmarks.py
parent7d078fe2e63c4a2fd573978a7cc847787473afa2 (diff)
protocol_benchmarks: Do not pre-encode numbers for manualjson
Diffstat (limited to 'lib/protocol_benchmarks.py')
-rwxr-xr-xlib/protocol_benchmarks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/protocol_benchmarks.py b/lib/protocol_benchmarks.py
index 57fcb38..a1a2350 100755
--- a/lib/protocol_benchmarks.py
+++ b/lib/protocol_benchmarks.py
@@ -481,7 +481,7 @@ class ManualJSON(DummyProtocol):
self.buf += 'bout << "}"'
else:
- self.buf += 'bout << "{}"'.format(value)
+ self.buf += 'bout << {}'.format(value)
if is_last:
self.buf += ';\n';
@@ -507,7 +507,7 @@ class ManualJSON(DummyProtocol):
self.buf += 'bout << "}"'
else:
- self.buf += 'bout << "\\"{}\\":{}"'.format(key, value)
+ self.buf += 'bout << "\\"{}\\":" << {}'.format(key, value)
if is_last:
self.buf += ';\n'