1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 06:18:07 +00:00

python: fix dead code in protobuf pretty-printing

This commit is contained in:
matejcik 2020-05-29 12:27:42 +02:00
parent bd5b3a3f21
commit 83d3acb0a6

View File

@ -455,7 +455,7 @@ def format_message(
if isinstance(value, list): if isinstance(value, list):
# short list of simple values # 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) return repr(value)
# long list, one line per entry # long list, one line per entry