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:
parent
bd5b3a3f21
commit
83d3acb0a6
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user