1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 23:48:12 +00:00

fix _customPrintFieldValue

This commit is contained in:
Pavol Rusnak 2015-02-21 12:52:01 +01:00
parent 68ef2d2262
commit 109cca5ab3

View File

@ -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: