diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-03-11 04:12:38 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-03-11 04:12:38 (GMT) |
commit | 06b116289bd399ee6c9dddaa92a62063160b491e (patch) | |
tree | 34d460d189c97102481f3c2cf5b748953861ddc7 /test/CacheDir/debug.py | |
parent | 3416f3c5408fefa8ac42cc6c618f44645b2d4b13 (diff) | |
download | SCons-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.py | 6 |
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') |