diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-03-11 04:30:17 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-03-11 04:30:17 (GMT) |
commit | 9b0ebfa042fb8b05515b80ec2d6b323f22883bca (patch) | |
tree | 60c813a8d6c156a3e076445f0e5f20c963000d2a /test | |
parent | 1bb14fca2a72f0f97a0738a7819624edfa6756b3 (diff) | |
download | SCons-9b0ebfa042fb8b05515b80ec2d6b323f22883bca.zip SCons-9b0ebfa042fb8b05515b80ec2d6b323f22883bca.tar.gz SCons-9b0ebfa042fb8b05515b80ec2d6b323f22883bca.tar.bz2 |
remove rb/wb from file opens, not needed py2/3
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': |