diff options
author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-13 23:54:18 -0700 |
---|---|---|
committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-13 23:54:18 -0700 |
commit | c0d5ef7e02e4bbe4581fcfb6f8dd8abad592f4a2 (patch) | |
tree | 2744ede4ec65eb20011f8eafaf449849618c2ef6 /test/DVIPS | |
parent | 1795d1248ca734941248736cd92d417a66519295 (diff) | |
download | scons-c0d5ef7e02e4bbe4581fcfb6f8dd8abad592f4a2.tar.gz |
Use byte strings to fix test on Python 3.
Diffstat (limited to 'test/DVIPS')
-rw-r--r-- | test/DVIPS/DVIPS.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/DVIPS/DVIPS.py b/test/DVIPS/DVIPS.py index b243bfcd..256258f0 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) """) |