From 02437d166aef596209cf91707ce4ac5f49f33e37 Mon Sep 17 00:00:00 2001 From: mruddy <6440430+mruddy@users.noreply.github.com> Date: Sun, 3 Sep 2017 11:53:15 -0400 Subject: [PATCH] fix v1 protocol --- trezorlib/protocol_v1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trezorlib/protocol_v1.py b/trezorlib/protocol_v1.py index e3ef43fce..e7175619a 100644 --- a/trezorlib/protocol_v1.py +++ b/trezorlib/protocol_v1.py @@ -40,7 +40,7 @@ class ProtocolV1(object): while data: # Report ID, data padded to 63 bytes chunk = b'?' + data[:REPLEN - 1] - chunk = chunk.ljust(REPLEN, bytes([0x00])) + chunk = chunk.ljust(REPLEN, b'\x00') transport.write_chunk(chunk) data = data[63:]