mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-30 20:02:34 +00:00
fix style
This commit is contained in:
parent
bc42eb68d6
commit
888a1edafa
@ -39,7 +39,7 @@ class ProtocolV1(object):
|
|||||||
|
|
||||||
while data:
|
while data:
|
||||||
# Report ID, data padded to 63 bytes
|
# Report ID, data padded to 63 bytes
|
||||||
chunk = b'?' + data[:REPLEN-1]
|
chunk = b'?' + data[:REPLEN - 1]
|
||||||
chunk = chunk.ljust(REPLEN, bytes([0x00]))
|
chunk = chunk.ljust(REPLEN, bytes([0x00]))
|
||||||
transport.write_chunk(chunk)
|
transport.write_chunk(chunk)
|
||||||
data = data[63:]
|
data = data[63:]
|
||||||
|
@ -124,4 +124,4 @@ class ProtocolV2(object):
|
|||||||
raise Exception('Cannot parse header')
|
raise Exception('Cannot parse header')
|
||||||
if magic != 0x03:
|
if magic != 0x03:
|
||||||
raise Exception('Unexpected magic character')
|
raise Exception('Unexpected magic character')
|
||||||
return session
|
return session
|
||||||
|
@ -39,4 +39,4 @@ class Transport(object):
|
|||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
Loading…
Reference in New Issue
Block a user