summaryrefslogtreecommitdiff
path: root/test/CacheDir
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-03-10 23:11:50 -0500
committerWilliam Deegan <bill@baddogconsulting.com>2017-03-10 23:11:50 -0500
commita5de27058922fcf35b6cc3b01c5927c475bd2036 (patch)
treeae038f751aeb35347693ea4fb5394f23cfeab941 /test/CacheDir
parente7b7fe43f4666918379ecee783d2612f039c5b6d (diff)
downloadscons-a5de27058922fcf35b6cc3b01c5927c475bd2036.tar.gz
remove rb/wb from file opens, not needed py2/3
Diffstat (limited to 'test/CacheDir')
-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 b665fe38..30325d21 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')