1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 22:38:08 +00:00

trezor.config: fix config_mock syntax

This commit is contained in:
Pavol Rusnak 2016-11-21 20:57:16 +01:00
parent 6575b8059e
commit a66d0b2e40
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -21,9 +21,9 @@ def Config():
def _save(self):
with open(self._file, 'wb') as f:
for k, v in self._data.items():
f.write(ustruct.pack('<HH', k, len(v)))
f.write(v)
for k, v in self._data.items():
f.write(ustruct.pack('<HH', k, len(v)))
f.write(v)
def get(self, app_id, key, default=None):
return self._data.get((app_id << 8) | key, default)