summaryrefslogtreecommitdiffstats
path: root/test/AS/ASFLAGS.py
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-02-28 00:09:58 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-02-28 00:09:58 (GMT)
commit7605860fff6a4d27b4bfc47bbe589e682b7e3d80 (patch)
tree6d643b8825430c1e25d1baeff533ffbace5fb95a /test/AS/ASFLAGS.py
parent90f6531cd593597ba7a1ccc2a5050bf9394b54a2 (diff)
downloadSCons-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.py5
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)
""")