From 54426761c62ac961c7742d51e95f0541b3a48edb Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Mon, 23 Oct 2017 17:28:01 +0200 Subject: [PATCH] fix transport_hid for python2 --- trezorlib/transport_hid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trezorlib/transport_hid.py b/trezorlib/transport_hid.py index 37a1857568..72ee8f1ff1 100644 --- a/trezorlib/transport_hid.py +++ b/trezorlib/transport_hid.py @@ -134,7 +134,7 @@ class HidTransport(Transport): if len(chunk) != 64: raise TransportException('Unexpected chunk size: %d' % len(chunk)) if self.hid_version == 2: - self.hid.handle.write(b'\0' + chunk) + self.hid.handle.write(b'\0' + bytearray(chunk)) else: self.hid.handle.write(chunk)