diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/DVIPDF/DVIPDFFLAGS.py | 12 |
1 files 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': |