tremove unused variable - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit fb65493963a129adf9c1cf53b887ed8dac19b1ce DIR parent ffbd0ccecd719c37c7f7182c4a8c47fe7a449390 HTML Author: SomberNight <somber.night@protonmail.com> Date: Fri, 30 Mar 2018 22:31:29 +0200 remove unused variable Diffstat: M plugins/keepkey/plugin.py | 4 ---- M plugins/ledger/ledger.py | 1 - M plugins/trezor/trezor.py | 3 --- 3 files changed, 0 insertions(+), 8 deletions(-) --- DIR diff --git a/plugins/keepkey/plugin.py b/plugins/keepkey/plugin.py t@@ -1,5 +1,3 @@ -import threading - from binascii import hexlify, unhexlify from electrum.util import bfh, bh2u t@@ -72,8 +70,6 @@ class KeepKeyCompatiblePlugin(HW_PluginBase): def __init__(self, parent, config, name): HW_PluginBase.__init__(self, parent, config, name) - self.main_thread = threading.current_thread() - # FIXME: move to base class when Ledger is fixed if self.libraries_available: self.device_manager().register_devices(self.DEVICE_IDS) DIR diff --git a/plugins/ledger/ledger.py b/plugins/ledger/ledger.py t@@ -573,7 +573,6 @@ class LedgerPlugin(HW_PluginBase): def get_client(self, keystore, force_pair=True): # All client interaction should not be in the main GUI thread - #assert self.main_thread != threading.current_thread() devmgr = self.device_manager() handler = keystore.handler with devmgr.hid_lock: DIR diff --git a/plugins/trezor/trezor.py b/plugins/trezor/trezor.py t@@ -1,5 +1,3 @@ -import threading - from binascii import hexlify, unhexlify from electrum.util import bfh, bh2u, versiontuple t@@ -93,7 +91,6 @@ class TrezorPlugin(HW_PluginBase): def __init__(self, parent, config, name): HW_PluginBase.__init__(self, parent, config, name) - self.main_thread = threading.current_thread() try: # Minimal test if python-trezor is installed