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

tools: add fmt:off to res_collect

This commit is contained in:
Pavol Rusnak 2018-07-10 13:46:49 +02:00
parent 9122587825
commit 28455a8789
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -42,6 +42,7 @@ for name in os.listdir('apps/'):
resfile = 'trezor/res/resources.py' resfile = 'trezor/res/resources.py'
bio = io.StringIO() bio = io.StringIO()
bio.write('# fmt: off\n')
bio.write('resdata = {\n') bio.write('resdata = {\n')
for k in sorted(resources.keys()): for k in sorted(resources.keys()):
bio.write(" '%s': %s,\n" % (k, resources[k])) bio.write(" '%s': %s,\n" % (k, resources[k]))