python: fix dead code in protobuf pretty-printing

pull/1034/head
matejcik 4 years ago
parent bd5b3a3f21
commit 83d3acb0a6

@ -455,7 +455,7 @@ def format_message(
if isinstance(value, list):
# short list of simple values
if not value or isinstance(value, (UVarintType, SVarintType, BoolType)):
if not value or isinstance(value[0], int):
return repr(value)
# long list, one line per entry

Loading…
Cancel
Save