This commit is contained in:
Kovid Goyal 2011-12-16 09:26:28 +05:30
parent f54cdb02f7
commit 4cd25c990d

View File

@ -973,8 +973,8 @@ class MobiReader(object):
continue continue
processed_records.append(i) processed_records.append(i)
data = self.sections[i][0] data = self.sections[i][0]
if data[:4] in (b'FLIS', b'FCIS', b'SRCS', b'\xe9\x8e\r\n', if data[:4] in {b'FLIS', b'FCIS', b'SRCS', b'\xe9\x8e\r\n',
b'RESC', b'BOUN', b'FDST', b'DATP'): b'RESC', b'BOUN', b'FDST', b'DATP'}:
# A FLIS, FCIS, SRCS or EOF record, ignore # A FLIS, FCIS, SRCS or EOF record, ignore
continue continue
buf = cStringIO.StringIO(data) buf = cStringIO.StringIO(data)