summaryrefslogtreecommitdiffstats
path: root/test/CacheDir/debug.py
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-03-11 04:12:38 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-03-11 04:12:38 (GMT)
commit06b116289bd399ee6c9dddaa92a62063160b491e (patch)
tree34d460d189c97102481f3c2cf5b748953861ddc7 /test/CacheDir/debug.py
parent3416f3c5408fefa8ac42cc6c618f44645b2d4b13 (diff)
downloadSCons-06b116289bd399ee6c9dddaa92a62063160b491e.zip
SCons-06b116289bd399ee6c9dddaa92a62063160b491e.tar.gz
SCons-06b116289bd399ee6c9dddaa92a62063160b491e.tar.bz2
remove rb/wb from file opens, not needed py2/3
Diffstat (limited to 'test/CacheDir/debug.py')
-rw-r--r--test/CacheDir/debug.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/CacheDir/debug.py b/test/CacheDir/debug.py
index 307687d..e3186b0 100644
--- a/test/CacheDir/debug.py
+++ b/test/CacheDir/debug.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')