diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-02-28 12:18:49 -0800 |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-02-28 12:18:49 -0800 |
commit | 09d0ba71137934406f79d2de5cd335e4af1c7dcf (patch) | |
tree | 44636ffa20faae9307b2e840fd7f033c34b05665 /QMTest/TestSCons_time.py | |
parent | 74e51ad2173ce988bb6de4bd17b23499f056303b (diff) | |
download | scons-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.py | 4 |
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) |