mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-29 19:08:12 +00:00
prettyprint: fix flake8 complaints
This commit is contained in:
parent
52c2319822
commit
cd9bd06163
@ -87,9 +87,9 @@ def get_buttonrequest_value(code):
|
|||||||
return [k for k in dir(proto.ButtonRequestType) if getattr(proto.ButtonRequestType, k) == code][0]
|
return [k for k in dir(proto.ButtonRequestType) if getattr(proto.ButtonRequestType, k) == code][0]
|
||||||
|
|
||||||
|
|
||||||
def format_protobuf(pb, indent=0, sep=' '*4):
|
def format_protobuf(pb, indent=0, sep=' ' * 4):
|
||||||
def pformat_value(value, indent):
|
def pformat_value(value, indent):
|
||||||
level = sep * indent
|
level = sep * indent
|
||||||
leadin = sep * (indent + 1)
|
leadin = sep * (indent + 1)
|
||||||
if isinstance(value, MessageType):
|
if isinstance(value, MessageType):
|
||||||
return format_protobuf(value, indent, sep)
|
return format_protobuf(value, indent, sep)
|
||||||
|
Loading…
Reference in New Issue
Block a user