diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-03-25 08:15:53 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-03-25 08:15:53 +0100 |
commit | 250e0b1afbbf27d0ddff63a12d649a1a186e9c20 (patch) | |
tree | 0ae409f6340da6a04fd4b5286d377206c69c3ce7 /lib/protocol_benchmarks.py | |
parent | 7d078fe2e63c4a2fd573978a7cc847787473afa2 (diff) |
protocol_benchmarks: Do not pre-encode numbers for manualjson
Diffstat (limited to 'lib/protocol_benchmarks.py')
-rwxr-xr-x | lib/protocol_benchmarks.py | 4 |
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' |