summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-03-11 04:10:29 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-03-11 04:10:29 (GMT)
commit31020a6f6f41969e1c0a953109de9457b6d1f812 (patch)
treef348dcaa68ab4e90213e40e894b359fdb5bfb26b
parent3ae12152167ab6df56a84bf2212ec47052b12472 (diff)
downloadSCons-31020a6f6f41969e1c0a953109de9457b6d1f812.zip
SCons-31020a6f6f41969e1c0a953109de9457b6d1f812.tar.gz
SCons-31020a6f6f41969e1c0a953109de9457b6d1f812.tar.bz2
remove rb/wb from file opens, not needed py2/3
-rw-r--r--test/CacheDir/CacheDir.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/CacheDir/CacheDir.py b/test/CacheDir/CacheDir.py
index 4c05634..fe73cad 100644
--- a/test/CacheDir/CacheDir.py
+++ b/test/CacheDir/CacheDir.py
@@ -52,10 +52,10 @@ SConscript('SConscript')
test.write(['src', 'SConscript'], """\
def cat(env, source, target):
target = str(target[0])
- open('cat.out', 'ab').write(target + "\\n")
- f = open(target, "wb")
+ open('cat.out', 'a').write(target + "\\n")
+ f = open(target, "w")
for src in source:
- f.write(open(str(src), "rb").read())
+ f.write(open(str(src), "r").read())
f.close()
env = Environment(BUILDERS={'Cat':Builder(action=cat)})
env.Cat('aaa.out', 'aaa.in')