diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-03-10 23:03:35 -0500 |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-03-10 23:03:35 -0500 |
commit | c11f0cccecfd1781ce258caaf4f7cffd45a9efaa (patch) | |
tree | f32e6324a5eba8a23f193bc3c820be0f900f31b9 /test/CPPSUFFIXES.py | |
parent | 203aa9227ad4dd8a5b22e8eabd6cf466a3fd2abf (diff) | |
download | scons-c11f0cccecfd1781ce258caaf4f7cffd45a9efaa.tar.gz |
remove rb/wb from file opens, not needed py2/3
Diffstat (limited to 'test/CPPSUFFIXES.py')
-rw-r--r-- | test/CPPSUFFIXES.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CPPSUFFIXES.py b/test/CPPSUFFIXES.py index b2e63697..6aa55960 100644 --- a/test/CPPSUFFIXES.py +++ b/test/CPPSUFFIXES.py @@ -37,12 +37,12 @@ test = TestSCons.TestSCons() test.write('mycc.py', r""" import sys def do_file(outf, inf): - for line in open(inf, 'rb').readlines(): + for line in open(inf, 'r').readlines(): if line[:10] == '#include <': do_file(outf, line[10:-2]) else: outf.write(line) -outf = open(sys.argv[1], 'wb') +outf = open(sys.argv[1], 'w') for f in sys.argv[2:]: do_file(outf, f) sys.exit(0) |