From 888a1edafaf7d4a5fc231eba6de2bfd285864430 Mon Sep 17 00:00:00 2001 From: Jan Pochyla Date: Thu, 24 Aug 2017 14:41:31 +0200 Subject: [PATCH] fix style --- trezorlib/protocol_v1.py | 2 +- trezorlib/protocol_v2.py | 2 +- trezorlib/transport.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/trezorlib/protocol_v1.py b/trezorlib/protocol_v1.py index 9bf6b5986..e3ef43fce 100644 --- a/trezorlib/protocol_v1.py +++ b/trezorlib/protocol_v1.py @@ -39,7 +39,7 @@ class ProtocolV1(object): while data: # Report ID, data padded to 63 bytes - chunk = b'?' + data[:REPLEN-1] + chunk = b'?' + data[:REPLEN - 1] chunk = chunk.ljust(REPLEN, bytes([0x00])) transport.write_chunk(chunk) data = data[63:] diff --git a/trezorlib/protocol_v2.py b/trezorlib/protocol_v2.py index cea18eabd..8e6428128 100644 --- a/trezorlib/protocol_v2.py +++ b/trezorlib/protocol_v2.py @@ -124,4 +124,4 @@ class ProtocolV2(object): raise Exception('Cannot parse header') if magic != 0x03: raise Exception('Unexpected magic character') - return session \ No newline at end of file + return session diff --git a/trezorlib/transport.py b/trezorlib/transport.py index 3bf6dbdd1..23c27bb40 100644 --- a/trezorlib/transport.py +++ b/trezorlib/transport.py @@ -39,4 +39,4 @@ class Transport(object): raise NotImplementedError def close(self): - raise NotImplementedError \ No newline at end of file + raise NotImplementedError