diff options
Diffstat (limited to 'test/YACC/YACCHXXFILESUFFIX.py')
-rw-r--r-- | test/YACC/YACCHXXFILESUFFIX.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/YACC/YACCHXXFILESUFFIX.py b/test/YACC/YACCHXXFILESUFFIX.py index 6664356e..64181894 100644 --- a/test/YACC/YACCHXXFILESUFFIX.py +++ b/test/YACC/YACCHXXFILESUFFIX.py @@ -47,11 +47,11 @@ for o, a in opts: outfile = open(a, 'wb') for f in args: infile = open(f, 'rb') - for l in [l for l in infile.readlines() if l != '/*yacc*/\\n']: + for l in [l for l in infile.readlines() if l != b'/*yacc*/\\n']: outfile.write(l) outfile.close() base, ext = os.path.splitext(args[0]) -open(base+'.hxxsuffix', 'wb').write(" ".join(sys.argv)+'\\n') +open(base+'.hxxsuffix', 'wb').write((" ".join(sys.argv)+'\\n').encode()) sys.exit(0) """) |