diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-02-28 00:09:58 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-02-28 00:09:58 (GMT) |
commit | 7605860fff6a4d27b4bfc47bbe589e682b7e3d80 (patch) | |
tree | 6d643b8825430c1e25d1baeff533ffbace5fb95a /test/AS/ASFLAGS.py | |
parent | 90f6531cd593597ba7a1ccc2a5050bf9394b54a2 (diff) | |
download | SCons-7605860fff6a4d27b4bfc47bbe589e682b7e3d80.zip SCons-7605860fff6a4d27b4bfc47bbe589e682b7e3d80.tar.gz SCons-7605860fff6a4d27b4bfc47bbe589e682b7e3d80.tar.bz2 |
fix byte file reading issues for py3/2 port
Diffstat (limited to 'test/AS/ASFLAGS.py')
-rw-r--r-- | test/AS/ASFLAGS.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/AS/ASFLAGS.py b/test/AS/ASFLAGS.py index 553ea67..56eb11b 100644 --- a/test/AS/ASFLAGS.py +++ b/test/AS/ASFLAGS.py @@ -58,7 +58,7 @@ while args: infile = open(args[0], 'rb') outfile = open(out, 'wb') for l in infile.readlines(): - if l[:5] != '#link': + if l[:5] != b'#link': outfile.write(l) sys.exit(0) """) @@ -89,8 +89,7 @@ infile = open(inf, 'rb') outfile = open(out, 'wb') outfile.write(optstring + "\n") for l in infile.readlines(): - print("LINE->%s<-"%l) - if l[:3] != bytearray('#as'): + if l[:3] != b'#as': outfile.write(l) sys.exit(0) """) |