diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-03-10 23:13:22 -0500 |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-03-10 23:13:22 -0500 |
commit | 48ec207f5ac6ac95674e945cac0ed45ef6296808 (patch) | |
tree | 4c65b1c19b52ce8a6476a28b23d594205ce5b367 /test/CacheDir | |
parent | 5d007b58d54812bf14a529b6fd6412b391adffa4 (diff) | |
download | scons-48ec207f5ac6ac95674e945cac0ed45ef6296808.tar.gz |
remove rb/wb from file opens, not needed py2/3
Diffstat (limited to 'test/CacheDir')
-rw-r--r-- | test/CacheDir/environment.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/CacheDir/environment.py b/test/CacheDir/environment.py index 1378bb28..eb28c19d 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() |