summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-03-11 04:11:50 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-03-11 04:11:50 (GMT)
commit3416f3c5408fefa8ac42cc6c618f44645b2d4b13 (patch)
treeae038f751aeb35347693ea4fb5394f23cfeab941
parent987ab157d85b4966e7ad6cfa8b7bb9031ab042fc (diff)
downloadSCons-3416f3c5408fefa8ac42cc6c618f44645b2d4b13.zip
SCons-3416f3c5408fefa8ac42cc6c618f44645b2d4b13.tar.gz
SCons-3416f3c5408fefa8ac42cc6c618f44645b2d4b13.tar.bz2
remove rb/wb from file opens, not needed py2/3
-rw-r--r--test/CacheDir/VariantDir.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/CacheDir/VariantDir.py b/test/CacheDir/VariantDir.py
index b665fe3..30325d2 100644
--- a/test/CacheDir/VariantDir.py
+++ b/test/CacheDir/VariantDir.py
@@ -42,10 +42,10 @@ cat_out = test.workpath('cat.out')
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')