summaryrefslogtreecommitdiffstats
path: root/QMTest/SConscript
diff options
context:
space:
mode:
authorStefan Zimmermann <zimmermann.code@gmail.com>2013-12-27 09:39:26 (GMT)
committerStefan Zimmermann <zimmermann.code@gmail.com>2013-12-27 09:39:26 (GMT)
commitcbd2254037664fdfe6ba1bf6678896fbd51698a9 (patch)
tree2341eeaf2f6721e2a017e37df0cc48ad29ebe6e1 /QMTest/SConscript
parent1a1a11122ad28df19d305af879ba79a2b08ce7d4 (diff)
downloadSCons-cbd2254037664fdfe6ba1bf6678896fbd51698a9.zip
SCons-cbd2254037664fdfe6ba1bf6678896fbd51698a9.tar.gz
SCons-cbd2254037664fdfe6ba1bf6678896fbd51698a9.tar.bz2
QMTest: open() in text mode. Add ()s to prints on writing test scripts from str.
Diffstat (limited to 'QMTest/SConscript')
-rw-r--r--QMTest/SConscript4
1 files changed, 2 insertions, 2 deletions
diff --git a/QMTest/SConscript b/QMTest/SConscript
index 33fe903..5469d29 100644
--- a/QMTest/SConscript
+++ b/QMTest/SConscript
@@ -44,12 +44,12 @@ files = [
def copy(target, source, env):
t = str(target[0])
s = str(source[0])
- c = open(s, 'rb').read()
+ c = open(s, 'r').read()
# Note: We construct the __ VERSION __ substitution string at
# run-time so it doesn't get replaced when this file gets copied
# into the tree for packaging.
c = c.replace('__' + 'VERSION' + '__', env['VERSION'])
- open(t, 'wb').write(c)
+ open(t, 'w').write(c)
for file in files:
# Guarantee that real copies of these files always exist in