1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-10 23:40:58 +00:00

style: fix flake8 warnings

This commit is contained in:
Pavol Rusnak 2018-06-21 17:04:00 +02:00
parent ac0bdd5902
commit d38d4d2b36
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
5 changed files with 2 additions and 12 deletions

View File

@ -1,4 +1,3 @@
from micropython import const
from trezor import wire
from trezor.crypto import bip32, bip39
from apps.common import cache, storage

View File

@ -18,7 +18,6 @@ if __debug__:
swipe_signal = loop.signal()
input_signal = loop.signal()
async def dispatch_DebugLinkDecision(ctx, msg):
if msg.yes_no is not None:
confirm_signal.send(confirm.CONFIRMED if msg.yes_no else confirm.CANCELLED)
@ -27,7 +26,6 @@ if __debug__:
if msg.input is not None:
input_signal.send(msg.input)
async def dispatch_DebugLinkGetState(ctx, msg):
m = DebugLinkState()
m.mnemonic = storage.get_mnemonic()
@ -38,7 +36,6 @@ if __debug__:
m.reset_word = ' '.join(reset_current_words)
return m
def boot():
# wipe storage when debug build is used
storage.wipe()

View File

@ -35,9 +35,4 @@ async def _show_address(ctx, address: str, network: int):
ui.NORMAL, '%s network' % get_network_str(network),
ui.MONO, *lines,
icon_color=ui.GREEN)
return await confirm(
ctx,
content,
code=ButtonRequestType.Address,
cancel='QR',
cancel_style=ui.BTN_KEY)
return await confirm(ctx, content, code=ButtonRequestType.Address, cancel='QR', cancel_style=ui.BTN_KEY)

View File

@ -4,7 +4,6 @@ from trezor.utils import chunks, format_amount
from trezor.ui.text import Text
from trezor.messages import ButtonRequestType
from trezor.messages import OutputScriptType
from apps.common import coins
from apps.common.confirm import confirm
from apps.common.confirm import hold_to_confirm