summaryrefslogtreecommitdiff
path: root/test/DVIPDF
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-13 23:54:18 -0700
committerCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-13 23:54:18 -0700
commitc0d5ef7e02e4bbe4581fcfb6f8dd8abad592f4a2 (patch)
tree2744ede4ec65eb20011f8eafaf449849618c2ef6 /test/DVIPDF
parent1795d1248ca734941248736cd92d417a66519295 (diff)
downloadscons-c0d5ef7e02e4bbe4581fcfb6f8dd8abad592f4a2.tar.gz
Use byte strings to fix test on Python 3.
Diffstat (limited to 'test/DVIPDF')
-rw-r--r--test/DVIPDF/DVIPDF.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/DVIPDF/DVIPDF.py b/test/DVIPDF/DVIPDF.py
index e7607410..5c722315 100644
--- a/test/DVIPDF/DVIPDF.py
+++ b/test/DVIPDF/DVIPDF.py
@@ -41,7 +41,7 @@ base_name = os.path.splitext(arg[0])[0]
infile = open(arg[0], 'rb')
out_file = open(base_name+'.dvi', 'wb')
for l in infile.readlines():
- if l[:4] != '#tex':
+ if l[:4] != b'#tex':
out_file.write(l)
sys.exit(0)
""")
@@ -55,7 +55,7 @@ base_name = os.path.splitext(arg[0])[0]
infile = open(arg[0], 'rb')
out_file = open(base_name+'.dvi', 'wb')
for l in infile.readlines():
- if l[:6] != '#latex':
+ if l[:6] != b'#latex':
out_file.write(l)
sys.exit(0)
""")
@@ -68,7 +68,7 @@ cmd_opts, arg = getopt.getopt(sys.argv[1:], 'i:r:', [])
infile = open(arg[0], 'rb')
out_file = open(arg[1], 'wb')
for l in infile.readlines():
- if l[:7] != '#dvipdf':
+ if l[:7] != b'#dvipdf':
out_file.write(l)
sys.exit(0)
""")