mirror of https://gitlab.com/ita1024/waf.git
fix for python 3
This commit is contained in:
parent
a2c4801476
commit
6eb83abd1c
|
@ -192,7 +192,7 @@ extern int foo;
|
|||
class grep_for_endianness(Task.Task):
|
||||
color = 'PINK'
|
||||
def run(self):
|
||||
txt = self.inputs[0].read(flags='rb')
|
||||
txt = self.inputs[0].read(flags='rb').decode('iso8859-1')
|
||||
if txt.find('LiTTleEnDian') > -1:
|
||||
self.generator.tmp.append('little')
|
||||
elif txt.find('BIGenDianSyS') > -1:
|
||||
|
|
Loading…
Reference in New Issue