diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-03-11 04:10:58 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-03-11 04:10:58 (GMT) |
commit | 987ab157d85b4966e7ad6cfa8b7bb9031ab042fc (patch) | |
tree | 9f436211d5b8502622fc71e4e71e1b471c13426f | |
parent | 31020a6f6f41969e1c0a953109de9457b6d1f812 (diff) | |
download | SCons-987ab157d85b4966e7ad6cfa8b7bb9031ab042fc.zip SCons-987ab157d85b4966e7ad6cfa8b7bb9031ab042fc.tar.gz SCons-987ab157d85b4966e7ad6cfa8b7bb9031ab042fc.tar.bz2 |
remove rb/wb from file opens, not needed py2/3
-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 e84ab09..386b16a 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') |