From cc4aa1812dfcbe5ff8a569e0672ac60ceb764a9b Mon Sep 17 00:00:00 2001 From: SomberNight Date: Mon, 6 Apr 2020 16:51:38 +0200 Subject: [PATCH] rm some unused imports --- electrum/plugins/bitbox02/bitbox02.py | 5 +---- electrum/plugins/bitbox02/qt.py | 15 ++------------- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/electrum/plugins/bitbox02/bitbox02.py b/electrum/plugins/bitbox02/bitbox02.py index 5c3f85d45..ca99f816c 100644 --- a/electrum/plugins/bitbox02/bitbox02.py +++ b/electrum/plugins/bitbox02/bitbox02.py @@ -3,18 +3,16 @@ # import hid -import hashlib from typing import TYPE_CHECKING, Dict, Tuple, Optional, List, Any, Callable from electrum import bip32, constants from electrum.i18n import _ -from electrum.keystore import Hardware_KeyStore, Xpub +from electrum.keystore import Hardware_KeyStore from electrum.transaction import PartialTransaction from electrum.wallet import Standard_Wallet, Multisig_Wallet, Deterministic_Wallet from electrum.util import bh2u, UserFacingException from electrum.base_wizard import ScriptTypeNotSupported, BaseWizard from electrum.logging import get_logger -from electrum.crypto import hmac_oneshot from electrum.plugin import Device, DeviceInfo from electrum.simple_config import SimpleConfig from electrum.json_db import StoredDict @@ -24,7 +22,6 @@ import electrum.bitcoin as bitcoin import electrum.ecc as ecc from ..hw_wallet import HW_PluginBase, HardwareClientBase -from ..hw_wallet.plugin import LibraryFoundButUnusable try: diff --git a/electrum/plugins/bitbox02/qt.py b/electrum/plugins/bitbox02/qt.py index 9b1ccc261..96165f203 100644 --- a/electrum/plugins/bitbox02/qt.py +++ b/electrum/plugins/bitbox02/qt.py @@ -1,37 +1,26 @@ -import time, os from functools import partial -import copy -from PyQt5.QtCore import Qt, pyqtSignal from PyQt5.QtWidgets import ( QPushButton, QLabel, QVBoxLayout, - QWidget, - QGridLayout, QLineEdit, QHBoxLayout, ) -from PyQt5.QtCore import Qt, QMetaObject, Q_RETURN_ARG, pyqtSignal, pyqtSlot +from PyQt5.QtCore import Qt, QMetaObject, Q_RETURN_ARG, pyqtSlot from electrum.gui.qt.util import ( WindowModalDialog, - Buttons, OkButton, - CancelButton, - get_parent_main_window, ) -from electrum.gui.qt.transaction_dialog import TxDialog from electrum.i18n import _ from electrum.plugin import hook -from electrum.wallet import Multisig_Wallet -from electrum.transaction import PartialTransaction from .bitbox02 import BitBox02Plugin from ..hw_wallet.qt import QtHandlerBase, QtPluginBase -from ..hw_wallet.plugin import only_hook_if_libraries_available, LibraryFoundButUnusable +from ..hw_wallet.plugin import only_hook_if_libraries_available class Plugin(BitBox02Plugin, QtPluginBase):