From 9b0ebfa042fb8b05515b80ec2d6b323f22883bca Mon Sep 17 00:00:00 2001 From: William Deegan Date: Fri, 10 Mar 2017 23:30:17 -0500 Subject: remove rb/wb from file opens, not needed py2/3 --- test/DVIPDF/DVIPDFFLAGS.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/DVIPDF/DVIPDFFLAGS.py b/test/DVIPDF/DVIPDFFLAGS.py index 4d03644..51a4c42 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': -- cgit v0.12