Merge branch 'master' of github.com:trezor/python-trezor

This commit is contained in:
slush0 2014-02-03 19:20:13 +01:00
commit 472d15e774
1 changed files with 2 additions and 1 deletions

3
trezorlib/client.py Executable file → Normal file
View File

@ -135,7 +135,8 @@ class TrezorClient(object):
return ret
def _pprint(self, msg):
return "<%s>:\n%s" % (msg.__class__.__name__, msg)
ser = msg.SerializeToString()
return "<%s> (%d bytes):\n%s" % (msg.__class__.__name__, len(ser), msg)
def setup_debuglink(self, button=None, pin_correct=False):
self.debug_button = button