Use format() instead of string interpolation, for old Python versions.
diff --git a/benchmarks/gen_protobuf_binary_cc.py b/benchmarks/gen_protobuf_binary_cc.py
index 181cafc..787e391 100644
--- a/benchmarks/gen_protobuf_binary_cc.py
+++ b/benchmarks/gen_protobuf_binary_cc.py
@@ -11,22 +11,22 @@
msg_basename = m.group(1)
count = int(m.group(2))
-print(f'''
+print('''
#include "{include}"
char buf[1];
int main() {{
-''')
+'''.format(include=include))
def RefMessage(name):
- print(f'''
+ print('''
{{
{name} proto;
proto.ParseFromArray(buf, 0);
proto.SerializePartialToArray(&buf[0], 0);
}}
- ''')
+ '''.format(name=name))
RefMessage(msg_basename)