summaryrefslogtreecommitdiff
path: root/QMTest/TestSCons_time.py
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-02-28 12:18:49 -0800
committerWilliam Deegan <bill@baddogconsulting.com>2017-02-28 12:18:49 -0800
commit09d0ba71137934406f79d2de5cd335e4af1c7dcf (patch)
tree44636ffa20faae9307b2e840fd7f033c34b05665 /QMTest/TestSCons_time.py
parent74e51ad2173ce988bb6de4bd17b23499f056303b (diff)
downloadscons-09d0ba71137934406f79d2de5cd335e4af1c7dcf.tar.gz
fix binary/non-binary file writes where appropriate, previous all were binary. py2/3
Diffstat (limited to 'QMTest/TestSCons_time.py')
-rw-r--r--QMTest/TestSCons_time.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/QMTest/TestSCons_time.py b/QMTest/TestSCons_time.py
index 6778d1b2..a9212f72 100644
--- a/QMTest/TestSCons_time.py
+++ b/QMTest/TestSCons_time.py
@@ -246,7 +246,7 @@ class TestSCons_time(TestCommon):
d, f = os.path.split(path)
if not os.path.isdir(d):
os.makedirs(d)
- open(path, 'wb').write(content)
+ open(path, 'w').write(content)
return dir
def write_sample_tarfile(self, archive, dir, files):
@@ -296,7 +296,7 @@ class TestSCons_time(TestCommon):
zip = zipfile.ZipFile(archive, 'w')
for name, content in files:
path = os.path.join(dir, name)
- open(path, 'wb').write(content)
+ open(path, 'w').write(content)
zip.write(path)
zip.close()
shutil.rmtree(dir)