summaryrefslogtreecommitdiffstats
path: root/test/CFILESUFFIX.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/CFILESUFFIX.py')
-rw-r--r--test/CFILESUFFIX.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CFILESUFFIX.py b/test/CFILESUFFIX.py
index 1a81240..0a3a81a 100644
--- a/test/CFILESUFFIX.py
+++ b/test/CFILESUFFIX.py
@@ -42,7 +42,7 @@ import sys
cmd_opts, args = getopt.getopt(sys.argv[1:], 't', [])
for a in args:
contents = open(a, 'rb').read()
- sys.stdout.write(contents.replace('LEX', 'mylex.py'))
+ sys.stdout.write((contents.replace(b'LEX', b'mylex.py')).decode())
sys.exit(0)
""")