summaryrefslogtreecommitdiffstats
path: root/test/DVIPS/DVIPS.py
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-14 06:54:18 (GMT)
committerCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-14 06:54:18 (GMT)
commit61d97ad8e9952cee608d02be682c40859bc87a1b (patch)
tree2744ede4ec65eb20011f8eafaf449849618c2ef6 /test/DVIPS/DVIPS.py
parentf6008262becb5a4832a2a8b993c49a8e1baf528a (diff)
downloadSCons-61d97ad8e9952cee608d02be682c40859bc87a1b.zip
SCons-61d97ad8e9952cee608d02be682c40859bc87a1b.tar.gz
SCons-61d97ad8e9952cee608d02be682c40859bc87a1b.tar.bz2
Use byte strings to fix test on Python 3.
Diffstat (limited to 'test/DVIPS/DVIPS.py')
-rw-r--r--test/DVIPS/DVIPS.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/DVIPS/DVIPS.py b/test/DVIPS/DVIPS.py
index b243bfc..256258f 100644
--- a/test/DVIPS/DVIPS.py
+++ b/test/DVIPS/DVIPS.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)
""")
@@ -66,7 +66,7 @@ import sys
infile = open(sys.argv[3], 'rb')
out_file = open(sys.argv[2], 'wb')
for l in infile.readlines():
- if l[:6] != '#dvips':
+ if l[:6] != b'#dvips':
out_file.write(l)
sys.exit(0)
""")