summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2019-07-11 16:09:21 +0200
committerAlexander Couzens <lynxis@fe80.eu>2019-07-11 16:10:43 +0200
commit1fa8e29e699e1171a056e73e457f34f22d4e94a7 (patch)
treecf262f02b2b00e8e83956ffe9802bc8f2766fb5c /src
parent37575534a43ba0a3c69644b779fd36ca11f17fa2 (diff)
target_dsp/bin2cfile.py: make it compatible with python3
Diffstat (limited to 'src')
-rwxr-xr-xsrc/target_dsp/calypso/bin2cfile.py4
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__":