mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 22:38:08 +00:00
client: Fix string encoding for Python 2
This commit is contained in:
parent
60329f0b65
commit
c48724eca6
@ -94,7 +94,7 @@ def pprint(msg):
|
||||
|
||||
|
||||
def log(msg):
|
||||
sys.stderr.write(str(msg))
|
||||
sys.stderr.write(msg)
|
||||
sys.stderr.write('\n')
|
||||
sys.stderr.flush()
|
||||
|
||||
@ -1038,7 +1038,7 @@ class ProtocolMixin(object):
|
||||
mnemonic = Mnemonic.normalize_string(mnemonic)
|
||||
|
||||
# Convert mnemonic to ASCII stream
|
||||
mnemonic = mnemonic.encode()
|
||||
mnemonic = mnemonic.encode('utf-8')
|
||||
|
||||
m = Mnemonic('english')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user