Fix #1537 (This book cause error on coversion to lrt)

This commit is contained in:
Kovid Goyal 2009-01-03 09:56:39 -08:00
parent 5d91e50f52
commit 1621e0141d

View File

@ -615,7 +615,7 @@ class Job(object):
self.log = unicode(self.log, 'utf-8', 'replace') self.log = unicode(self.log, 'utf-8', 'replace')
ans.extend(self.log.split('\n')) ans.extend(self.log.split('\n'))
ans = [x.decode(preferred_encoding, 'replace') if isinstance(x, 'str') else x for x in ans] ans = [x.decode(preferred_encoding, 'replace') if isinstance(x, str) else x for x in ans]
return u'<br>'.join(ans) return u'<br>'.join(ans)