mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-15 20:19:23 +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]
|
||||
|
||||
|
||||
def format_protobuf(pb, indent=0, sep=' '*4):
|
||||
def format_protobuf(pb, indent=0, sep=' ' * 4):
|
||||
def pformat_value(value, indent):
|
||||
level = sep * indent
|
||||
level = sep * indent
|
||||
leadin = sep * (indent + 1)
|
||||
if isinstance(value, MessageType):
|
||||
return format_protobuf(value, indent, sep)
|
||||
|
Loading…
Reference in New Issue
Block a user