mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 06:48:16 +00:00
fix _customPrintFieldValue
This commit is contained in:
parent
68ef2d2262
commit
109cca5ab3
@ -88,7 +88,7 @@ def monkeypatch_google_protobuf_text_format():
|
||||
|
||||
_oldPrintFieldValue = google.protobuf.text_format.PrintFieldValue
|
||||
|
||||
def _customPrintFieldValue(field, value, out, indent=0, as_utf8=False, as_one_line=False):
|
||||
def _customPrintFieldValue(field, value, out, indent=0, as_utf8=False, as_one_line=False, pointy_brackets=False, float_format=None):
|
||||
if field.type == google.protobuf.descriptor.FieldDescriptor.TYPE_BYTES:
|
||||
_oldPrintFieldValue(field, 'hex(%s)' % binascii.hexlify(value), out, indent, as_utf8, as_one_line)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user