mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-14 03:30:02 +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