1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-13 19:18:56 +00:00

core: fix new Python SyntaxWarning (new in 3.8)

This commit is contained in:
Pavol Rusnak 2019-10-18 17:59:37 +00:00
parent bcf20363eb
commit b79102008d
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -14,7 +14,7 @@ def generate(env):
action="cat $SOURCES"
" | $SED 's/^Q(.*)/\"&\"/'"
" | $CC -E $CFLAGS $CCFLAGS $_CCCOMCOM -"
" | $SED 's/^\"\(Q(.*)\)\"/\\1/' > $TARGET", )
" | $SED 's/^\"\\(Q(.*)\\)\"/\\1/' > $TARGET", )
env['BUILDERS']['GenerateQstrDefs'] = SCons.Builder.Builder(
action='$MAKEQSTRDATA $SOURCE > $TARGET', )
@ -27,7 +27,7 @@ def generate(env):
# so the compiler can optimize out the things we don't want
btc_only = 'True' if env['bitcoin_only'] == '1' else 'False'
interim = "%s.i" % target[:-4] # replace .mpy with .i
return '$SED "s:utils\.BITCOIN_ONLY:%s:g" %s > %s && $MPY_CROSS -o %s -s %s %s' % (btc_only, source, interim, target, source_name, interim)
return '$SED "s:utils\\.BITCOIN_ONLY:%s:g" %s > %s && $MPY_CROSS -o %s -s %s %s' % (btc_only, source, interim, target, source_name, interim)
env['BUILDERS']['FrozenModule'] = SCons.Builder.Builder(
generator=generate_frozen_module,