diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2019-07-11 16:09:21 +0200 |
---|---|---|
committer | Alexander Couzens <lynxis@fe80.eu> | 2019-07-11 16:10:43 +0200 |
commit | 1fa8e29e699e1171a056e73e457f34f22d4e94a7 (patch) | |
tree | cf262f02b2b00e8e83956ffe9802bc8f2766fb5c /src | |
parent | 37575534a43ba0a3c69644b779fd36ca11f17fa2 (diff) |
target_dsp/bin2cfile.py: make it compatible with python3
Change-Id: I2659c2e4633bd120cc6cd76942eff5b66d2057bb
Diffstat (limited to 'src')
-rwxr-xr-x | src/target_dsp/calypso/bin2cfile.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target_dsp/calypso/bin2cfile.py b/src/target_dsp/calypso/bin2cfile.py index 9456a6ac..4d5a193f 100755 --- a/src/target_dsp/calypso/bin2cfile.py +++ b/src/target_dsp/calypso/bin2cfile.py @@ -31,7 +31,7 @@ def main(pn, filename): name = filename.split('.',1)[0] # Header / footer - print """ + print(""" #define _SA_DECL (const uint16_t *)&(const uint16_t []) static const struct dsp_section %s[] = { @@ -50,7 +50,7 @@ static const struct dsp_section %s[] = { }; #undef _SA_DECL -""" % (name, len(d)/2, ops) +""" % (name, len(d)/2, ops)) if __name__ == "__main__": |