fix for python 3

This commit is contained in:
Thomas Nagy 2011-11-19 21:31:25 +01:00
parent a2c4801476
commit 6eb83abd1c
1 changed files with 1 additions and 1 deletions

View File

@ -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: