From 250e0b1afbbf27d0ddff63a12d649a1a186e9c20 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 25 Mar 2019 08:15:53 +0100 Subject: protocol_benchmarks: Do not pre-encode numbers for manualjson --- lib/protocol_benchmarks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/protocol_benchmarks.py') 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' -- cgit v1.2.3