summaryrefslogtreecommitdiff
path: root/test/DVIPS
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-03-19 20:31:09 -0700
committerWilliam Deegan <bill@baddogconsulting.com>2017-03-19 20:31:09 -0700
commit9b4dc44ca990b2a645f28c9de9245e7fe2c9e199 (patch)
tree3aa8e4afa81eb389d34daad55b99aade450bbd12 /test/DVIPS
parentd58fd403a346d7d94fb36c3bc3239a5b03056f00 (diff)
downloadscons-9b4dc44ca990b2a645f28c9de9245e7fe2c9e199.tar.gz
fix ab flag py2/3
Diffstat (limited to 'test/DVIPS')
-rw-r--r--test/DVIPS/DVIPSFLAGS.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/DVIPS/DVIPSFLAGS.py b/test/DVIPS/DVIPSFLAGS.py
index 814c8aaa..b6625d75 100644
--- a/test/DVIPS/DVIPSFLAGS.py
+++ b/test/DVIPS/DVIPSFLAGS.py
@@ -125,10 +125,11 @@ dvips = test.where_is('dvips')
if dvips:
- test.write("wrapper.py", """import os
+ test.write("wrapper.py", """
+import os
import sys
cmd = " ".join(sys.argv[1:])
-open('%s', 'ab').write("%%s\\n" %% cmd)
+open('%s', 'a').write("%%s\\n" %% cmd)
os.system(cmd)
""" % test.workpath('wrapper.out').replace('\\', '\\\\'))