From 67d835fd3e137660029ebed7179f5d9aa7e13696 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Wed, 28 Feb 2018 18:25:04 +0100 Subject: [PATCH] src: make flake8 happy --- src/apps/common/request_passphrase.py | 2 +- src/apps/management/reset_device.py | 1 + src/trezor/wire/codec_v1.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/apps/common/request_passphrase.py b/src/apps/common/request_passphrase.py index 0f42f98a6..405be02ac 100644 --- a/src/apps/common/request_passphrase.py +++ b/src/apps/common/request_passphrase.py @@ -1,4 +1,4 @@ -from trezor import loop, ui, wire +from trezor import ui, wire from trezor.messages import ButtonRequestType, wire_types from trezor.messages.ButtonRequest import ButtonRequest from trezor.messages.FailureType import ActionCancelled, ProcessError diff --git a/src/apps/management/reset_device.py b/src/apps/management/reset_device.py index 39b694697..7c79399b4 100644 --- a/src/apps/management/reset_device.py +++ b/src/apps/management/reset_device.py @@ -187,6 +187,7 @@ async def check_mnemonic(ctx, mnemonic: str) -> bool: return True + @ui.layout async def check_word(ctx, words: list, index: int): keyboard = MnemonicKeyboard('Type the %s word:' % format_ordinal(index + 1)) diff --git a/src/trezor/wire/codec_v1.py b/src/trezor/wire/codec_v1.py index ec106f4cc..5849338d9 100644 --- a/src/trezor/wire/codec_v1.py +++ b/src/trezor/wire/codec_v1.py @@ -1,7 +1,7 @@ from micropython import const import ustruct -from trezor import io, ui +from trezor import io from trezor import loop from trezor import utils