diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-03-10 23:10:58 -0500 |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-03-10 23:10:58 -0500 |
commit | e7b7fe43f4666918379ecee783d2612f039c5b6d (patch) | |
tree | 9f436211d5b8502622fc71e4e71e1b471c13426f /test/CacheDir/SideEffect.py | |
parent | 02849b898268eff325e5df4fc52620fba2a31e4a (diff) | |
download | scons-e7b7fe43f4666918379ecee783d2612f039c5b6d.tar.gz |
remove rb/wb from file opens, not needed py2/3
Diffstat (limited to 'test/CacheDir/SideEffect.py')
-rw-r--r-- | test/CacheDir/SideEffect.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CacheDir/SideEffect.py b/test/CacheDir/SideEffect.py index e84ab090..386b16a8 100644 --- a/test/CacheDir/SideEffect.py +++ b/test/CacheDir/SideEffect.py @@ -38,14 +38,14 @@ cache = test.workpath('cache') test.write(['work', 'SConstruct'], """\ def copy(source, target): - open(target, "wb").write(open(source, "rb").read()) + open(target, "w").write(open(source, "r").read()) def build(env, source, target): s = str(source[0]) t = str(target[0]) copy(s, t) if target[0].side_effects: - side_effect = open(str(target[0].side_effects[0]), "ab") + side_effect = open(str(target[0].side_effects[0]), "a") side_effect.write(s + ' -> ' + t + '\\n') CacheDir(r'%(cache)s') |