summaryrefslogtreecommitdiffstats
path: root/test/Value.py
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-12 23:21:07 (GMT)
committerCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-12 23:21:07 (GMT)
commitd6823296e39adc6f147ae64f9be6ce64b8bb4a3e (patch)
tree61f648bdc234084da9d784ce206edf332f979e4d /test/Value.py
parentf5f057cd5399ca96ef521b16bd53e5b43daaaada (diff)
downloadSCons-d6823296e39adc6f147ae64f9be6ce64b8bb4a3e.zip
SCons-d6823296e39adc6f147ae64f9be6ce64b8bb4a3e.tar.gz
SCons-d6823296e39adc6f147ae64f9be6ce64b8bb4a3e.tar.bz2
Fix some bytes/str issues to fix py2/3.
Diffstat (limited to 'test/Value.py')
-rw-r--r--test/Value.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Value.py b/test/Value.py
index 7abe758..34b036b 100644
--- a/test/Value.py
+++ b/test/Value.py
@@ -59,7 +59,7 @@ env.B('f3.out', Value(C))
env.S('f4.out', Value(L))
def create_value (target, source, env):
- target[0].write(source[0].get_contents ())
+ target[0].write(source[0].get_contents())
def create_value_file (target, source, env):
open(str(target[0]), 'wb').write(source[0].read())
@@ -75,7 +75,7 @@ env.B3('f5.out', V)
test.write('put.py', """\
import os
import sys
-open(sys.argv[-1],'wb').write(" ".join(sys.argv[1:-2]))
+open(sys.argv[-1],'w').write(" ".join(sys.argv[1:-2]))
""")
# Run all of the tests with both types of source signature