diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-03-11 04:13:22 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-03-11 04:13:22 (GMT) |
commit | 886027ad490ea6ff9e8a4b5ecaa8396e24842211 (patch) | |
tree | 4c65b1c19b52ce8a6476a28b23d594205ce5b367 | |
parent | 06b116289bd399ee6c9dddaa92a62063160b491e (diff) | |
download | SCons-886027ad490ea6ff9e8a4b5ecaa8396e24842211.zip SCons-886027ad490ea6ff9e8a4b5ecaa8396e24842211.tar.gz SCons-886027ad490ea6ff9e8a4b5ecaa8396e24842211.tar.bz2 |
remove rb/wb from file opens, not needed py2/3
-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 1378bb2..eb28c19 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() |