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:
parent
ac0bdd5902
commit
d38d4d2b36
@ -1,4 +1,3 @@
|
||||
from micropython import const
|
||||
from trezor import wire
|
||||
from trezor.crypto import bip32, bip39
|
||||
from apps.common import cache, storage
|
||||
|
@ -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()
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user