diff options
author | Daniel Moody <dmoody256@gmail.com> | 2018-04-10 13:03:43 (GMT) |
---|---|---|
committer | Daniel Moody <dmoody256@gmail.com> | 2018-04-10 13:03:43 (GMT) |
commit | e8ee5e89e0c301324aaa3b78a7a2e8c8919d53e8 (patch) | |
tree | 216ba91fa2b86bdd13b5fb3477db1b629a2ae3e7 /test | |
parent | 7d6468b7bf017ec8b0a412342b15d2a4d940c89d (diff) | |
download | SCons-e8ee5e89e0c301324aaa3b78a7a2e8c8919d53e8.zip SCons-e8ee5e89e0c301324aaa3b78a7a2e8c8919d53e8.tar.gz SCons-e8ee5e89e0c301324aaa3b78a7a2e8c8919d53e8.tar.bz2 |
removed binary read and write so newlines are crossplatform and updated path for appveyor script
Diffstat (limited to 'test')
-rw-r--r-- | test/YACC/YACC-fixture/myyacc.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/YACC/YACC-fixture/myyacc.py b/test/YACC/YACC-fixture/myyacc.py index c2e1abf..756c98f 100644 --- a/test/YACC/YACC-fixture/myyacc.py +++ b/test/YACC/YACC-fixture/myyacc.py @@ -4,10 +4,10 @@ cmd_opts, args = getopt.getopt(sys.argv[1:], 'o:', []) output = None opt_string = '' for opt, arg in cmd_opts: - if opt == '-o': output = open(arg, 'wb') + if opt == '-o': output = open(arg, 'w') else: opt_string = opt_string + ' ' + opt for a in args: - contents = open(a, 'rb').read() - output.write(contents.replace(b'YACC', b'myyacc.py')) + contents = open(a, 'r').read() + output.write(contents.replace('YACC', 'myyacc.py')) output.close() sys.exit(0) |