summaryrefslogtreecommitdiff
path: root/test/DVIPDF
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-03-10 23:30:17 -0500
committerWilliam Deegan <bill@baddogconsulting.com>2017-03-10 23:30:17 -0500
commit3398416b8fe131c8beb07d6c2c4dea2ffe73660e (patch)
tree60c813a8d6c156a3e076445f0e5f20c963000d2a /test/DVIPDF
parent66a3f3ec3c6df0a5e13571be8cb14356f545a680 (diff)
downloadscons-3398416b8fe131c8beb07d6c2c4dea2ffe73660e.tar.gz
remove rb/wb from file opens, not needed py2/3
Diffstat (limited to 'test/DVIPDF')
-rw-r--r--test/DVIPDF/DVIPDFFLAGS.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/DVIPDF/DVIPDFFLAGS.py b/test/DVIPDF/DVIPDFFLAGS.py
index 4d03644b..51a4c42a 100644
--- a/test/DVIPDF/DVIPDFFLAGS.py
+++ b/test/DVIPDF/DVIPDFFLAGS.py
@@ -38,8 +38,8 @@ import sys
import getopt
cmd_opts, arg = getopt.getopt(sys.argv[1:], 'i:r:', [])
base_name = os.path.splitext(arg[0])[0]
-infile = open(arg[0], 'rb')
-out_file = open(base_name+'.dvi', 'wb')
+infile = open(arg[0], 'r')
+out_file = open(base_name+'.dvi', 'w')
for l in infile.readlines():
if l[:4] != '#tex':
out_file.write(l)
@@ -52,8 +52,8 @@ import sys
import getopt
cmd_opts, arg = getopt.getopt(sys.argv[1:], 'i:r:', [])
base_name = os.path.splitext(arg[0])[0]
-infile = open(arg[0], 'rb')
-out_file = open(base_name+'.dvi', 'wb')
+infile = open(arg[0], 'r')
+out_file = open(base_name+'.dvi', 'w')
for l in infile.readlines():
if l[:6] != '#latex':
out_file.write(l)
@@ -68,8 +68,8 @@ cmd_opts, args = getopt.getopt(sys.argv[1:], 'x', [])
opt_string = ''
for opt, arg in cmd_opts:
opt_string = opt_string + ' ' + opt
-infile = open(args[0], 'rb')
-out_file = open(args[1], 'wb')
+infile = open(args[0], 'r')
+out_file = open(args[1], 'w')
out_file.write(opt_string + "\n")
for l in infile.readlines():
if l[:7] != '#dvipdf':