summaryrefslogtreecommitdiff
path: root/test/CacheDir
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-03-10 23:13:22 -0500
committerWilliam Deegan <bill@baddogconsulting.com>2017-03-10 23:13:22 -0500
commit48ec207f5ac6ac95674e945cac0ed45ef6296808 (patch)
tree4c65b1c19b52ce8a6476a28b23d594205ce5b367 /test/CacheDir
parent5d007b58d54812bf14a529b6fd6412b391adffa4 (diff)
downloadscons-48ec207f5ac6ac95674e945cac0ed45ef6296808.tar.gz
remove rb/wb from file opens, not needed py2/3
Diffstat (limited to 'test/CacheDir')
-rw-r--r--test/CacheDir/environment.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/CacheDir/environment.py b/test/CacheDir/environment.py
index 1378bb28..eb28c19d 100644
--- a/test/CacheDir/environment.py
+++ b/test/CacheDir/environment.py
@@ -53,10 +53,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_cache = Environment(BUILDERS={'Cat':Builder(action=cat)})
env_nocache = env_cache.Clone()