misc: Small style fix in _EncodeVarint32.
authorGabe Black <gabeblack@google.com>
Thu, 5 Oct 2017 02:28:53 +0000 (19:28 -0700)
committerGabe Black <gabeblack@google.com>
Thu, 5 Oct 2017 09:15:27 +0000 (09:15 +0000)
Added spaces around the '|' operator.

Change-Id: I5cb82b98e7d2769605cde141f76a62a6e3c6570d
Reviewed-on: https://gem5-review.googlesource.com/5002
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>

util/protolib.py

index 4f3f2c7e3d031898b867db54f8c7717c38d5587a..1e442f1d907111069614eaca8348afb6a16012fc 100644 (file)
@@ -152,7 +152,7 @@ def _EncodeVarint32(out_file, value):
   bits = value & 0x7f
   value >>= 7
   while value:
-    out_file.write(struct.pack('<B', 0x80|bits))
+    out_file.write(struct.pack('<B', 0x80 | bits))
     bits = value & 0x7f
     value >>= 7
   out_file.write(struct.pack('<B', bits))