Browse Source

rm some unused imports

hard-fail-on-bad-server-string
SomberNight 5 years ago
committed by TheCharlatan
parent
commit
cc4aa1812d
No known key found for this signature in database GPG Key ID: 9B79B45691DB4173
  1. 5
      electrum/plugins/bitbox02/bitbox02.py
  2. 15
      electrum/plugins/bitbox02/qt.py

5
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:

15
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):

Loading…
Cancel
Save