diff options
author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-12 23:21:07 (GMT) |
---|---|---|
committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-12 23:21:07 (GMT) |
commit | d6823296e39adc6f147ae64f9be6ce64b8bb4a3e (patch) | |
tree | 61f648bdc234084da9d784ce206edf332f979e4d /test/DVIPDF | |
parent | f5f057cd5399ca96ef521b16bd53e5b43daaaada (diff) | |
download | SCons-d6823296e39adc6f147ae64f9be6ce64b8bb4a3e.zip SCons-d6823296e39adc6f147ae64f9be6ce64b8bb4a3e.tar.gz SCons-d6823296e39adc6f147ae64f9be6ce64b8bb4a3e.tar.bz2 |
Fix some bytes/str issues to fix py2/3.
Diffstat (limited to 'test/DVIPDF')
-rw-r--r-- | test/DVIPDF/DVIPDFFLAGS.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/DVIPDF/DVIPDFFLAGS.py b/test/DVIPDF/DVIPDFFLAGS.py index 51a4c42..3704d60 100644 --- a/test/DVIPDF/DVIPDFFLAGS.py +++ b/test/DVIPDF/DVIPDFFLAGS.py @@ -55,7 +55,7 @@ base_name = os.path.splitext(arg[0])[0] infile = open(arg[0], 'r') out_file = open(base_name+'.dvi', 'w') for l in infile.readlines(): - if l[:6] != '#latex': + if l[:6] != b'#latex': out_file.write(l) sys.exit(0) """) @@ -114,7 +114,7 @@ if dvipdf and tex: test.write("wrapper.py", """import os import sys cmd = " ".join(sys.argv[1:]) -open('%s', 'ab').write("%%s\\n" %% cmd) +open('%s', 'a').write("%%s\\n" %% cmd) os.system(cmd) """ % test.workpath('wrapper.out').replace('\\', '\\\\')) |