summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-03-11 04:13:22 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-03-11 04:13:22 (GMT)
commit886027ad490ea6ff9e8a4b5ecaa8396e24842211 (patch)
tree4c65b1c19b52ce8a6476a28b23d594205ce5b367
parent06b116289bd399ee6c9dddaa92a62063160b491e (diff)
downloadSCons-886027ad490ea6ff9e8a4b5ecaa8396e24842211.zip
SCons-886027ad490ea6ff9e8a4b5ecaa8396e24842211.tar.gz
SCons-886027ad490ea6ff9e8a4b5ecaa8396e24842211.tar.bz2
remove rb/wb from file opens, not needed py2/3
-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 1378bb2..eb28c19 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()