summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-03-20 03:31:09 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-03-20 03:31:09 (GMT)
commita62a149a4a5745974217eb1c6859116898057cac (patch)
tree3aa8e4afa81eb389d34daad55b99aade450bbd12
parentd9eacbb046154a04c1a32372d18b6d0614f2c7fe (diff)
downloadSCons-a62a149a4a5745974217eb1c6859116898057cac.zip
SCons-a62a149a4a5745974217eb1c6859116898057cac.tar.gz
SCons-a62a149a4a5745974217eb1c6859116898057cac.tar.bz2
fix ab flag py2/3
-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 814c8aa..b6625d7 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('\\', '\\\\'))