1
0
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:
Saleem Rashid 2017-12-17 12:31:54 +00:00 committed by Pavol Rusnak
parent 60329f0b65
commit c48724eca6

View File

@ -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')