From 2e0e6d9cdea68b89660ee53d75155be7196a560f Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Thu, 20 Mar 2025 14:45:25 +0200 Subject: [PATCH] fixup! chore(core): adapt trezorlib transports to session based [no changelog] --- python/src/trezorlib/transport/thp/protocol_v1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/trezorlib/transport/thp/protocol_v1.py b/python/src/trezorlib/transport/thp/protocol_v1.py index 9dfb4cb281..6837dc04f0 100644 --- a/python/src/trezorlib/transport/thp/protocol_v1.py +++ b/python/src/trezorlib/transport/thp/protocol_v1.py @@ -88,7 +88,7 @@ class ProtocolV1Channel(Channel): chunk = b"?" + buffer[: chunk_size - 1] chunk = chunk.ljust(chunk_size, b"\x00") self.transport.write_chunk(chunk) - buffer = buffer[chunk_size - 1:] + buffer = buffer[chunk_size - 1 :] def _read(self, timeout: float | None = None) -> t.Tuple[int, bytes]: if timeout is None: