mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-09 06:50:58 +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):
|
def log(msg):
|
||||||
sys.stderr.write(str(msg))
|
sys.stderr.write(msg)
|
||||||
sys.stderr.write('\n')
|
sys.stderr.write('\n')
|
||||||
sys.stderr.flush()
|
sys.stderr.flush()
|
||||||
|
|
||||||
@ -1038,7 +1038,7 @@ class ProtocolMixin(object):
|
|||||||
mnemonic = Mnemonic.normalize_string(mnemonic)
|
mnemonic = Mnemonic.normalize_string(mnemonic)
|
||||||
|
|
||||||
# Convert mnemonic to ASCII stream
|
# Convert mnemonic to ASCII stream
|
||||||
mnemonic = mnemonic.encode()
|
mnemonic = mnemonic.encode('utf-8')
|
||||||
|
|
||||||
m = Mnemonic('english')
|
m = Mnemonic('english')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user