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:
parent
6575b8059e
commit
a66d0b2e40
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user