summaryrefslogtreecommitdiffstats
path: root/test/SideEffect/parallel.py
diff options
context:
space:
mode:
authorWilliam Blevins <wblevins001@gmail.com>2016-11-28 02:27:10 (GMT)
committerWilliam Blevins <wblevins001@gmail.com>2016-11-28 02:27:10 (GMT)
commit51abbd22089b2274161ee95d48d00525d7905b01 (patch)
tree52c998b0a8faf434f306c5498199e6ba468ff261 /test/SideEffect/parallel.py
parente3d5fdee7267b8e07873f77afe4f2ecc46f82f16 (diff)
downloadSCons-51abbd22089b2274161ee95d48d00525d7905b01.zip
SCons-51abbd22089b2274161ee95d48d00525d7905b01.tar.gz
SCons-51abbd22089b2274161ee95d48d00525d7905b01.tar.bz2
Python3 test fixes for Fortran/Side-effect.
Diffstat (limited to 'test/SideEffect/parallel.py')
-rw-r--r--test/SideEffect/parallel.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SideEffect/parallel.py b/test/SideEffect/parallel.py
index ff883c4..f750903 100644
--- a/test/SideEffect/parallel.py
+++ b/test/SideEffect/parallel.py
@@ -45,14 +45,14 @@ logfile = 'log.txt'
try:
os.mkdir(lockdir)
-except OSError, e:
+except OSError as e:
msg = 'could not create lock directory: %s\\n' % e
sys.stderr.write(msg)
sys.exit(1)
src, target = sys.argv[1:]
-open(logfile, 'ab').write('%s -> %s\\n' % (src, target))
+open(logfile, 'ab').write(('%s -> %s\\n' % (src, target)).encode())
# Give the other threads a chance to start.
time.sleep(1)