diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-03-16 13:16:36 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-03-16 13:16:36 (GMT) |
commit | 6fd4619d43e01417d521cbf915b8344baf8210bc (patch) | |
tree | ac9605069570a0cccea53d619ca42ee3eb3fd64f /test/explain | |
parent | 415927988528083c1c5e719996e4f58684dc1301 (diff) | |
download | SCons-6fd4619d43e01417d521cbf915b8344baf8210bc.zip SCons-6fd4619d43e01417d521cbf915b8344baf8210bc.tar.gz SCons-6fd4619d43e01417d521cbf915b8344baf8210bc.tar.bz2 |
py2/3 wb/rb changed
Diffstat (limited to 'test/explain')
-rw-r--r-- | test/explain/save-info.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/explain/save-info.py b/test/explain/save-info.py index 545f624..150d7ef 100644 --- a/test/explain/save-info.py +++ b/test/explain/save-info.py @@ -51,7 +51,7 @@ def process(outfp, infp): if line[:8] == 'include ': file = line[8:-1] try: - fp = open(file, 'rb') + fp = open(file, 'r') except IOError: import os print("os.getcwd() =", os.getcwd()) @@ -60,10 +60,10 @@ def process(outfp, infp): else: outfp.write(line) -outfp = open(sys.argv[1], 'wb') +outfp = open(sys.argv[1], 'w') for f in sys.argv[2:]: if f != '-': - process(outfp, open(f, 'rb')) + process(outfp, open(f, 'r')) sys.exit(0) """) |