1
0

PEP8-ify most of plugins/trezor

This commit is contained in:
Neil Booth
2015-12-27 15:10:53 +09:00
parent c02daa56b0
commit 7372e0e082
4 changed files with 18 additions and 10 deletions

View File

@@ -2,6 +2,7 @@ from sys import stderr
from electrum.i18n import _
class GuiMixin(object):
# Requires: self.proto, self.device
@@ -47,12 +48,13 @@ class GuiMixin(object):
return self.proto.PassphraseAck(passphrase=passphrase)
def callback_WordRequest(self, msg):
#TODO
# TODO
stderr.write("Enter one word of mnemonic:\n")
stderr.flush()
word = raw_input()
return self.proto.WordAck(word=word)
def trezor_client_class(protocol_mixin, base_client, proto):
'''Returns a class dynamically.'''