diff --git a/src/calibre/ebooks/mobi/reader.py b/src/calibre/ebooks/mobi/reader.py index c344fab211..057b119145 100644 --- a/src/calibre/ebooks/mobi/reader.py +++ b/src/calibre/ebooks/mobi/reader.py @@ -973,8 +973,8 @@ class MobiReader(object): continue processed_records.append(i) data = self.sections[i][0] - if data[:4] in (b'FLIS', b'FCIS', b'SRCS', b'\xe9\x8e\r\n', - b'RESC', b'BOUN', b'FDST', b'DATP'): + if data[:4] in {b'FLIS', b'FCIS', b'SRCS', b'\xe9\x8e\r\n', + b'RESC', b'BOUN', b'FDST', b'DATP'}: # A FLIS, FCIS, SRCS or EOF record, ignore continue buf = cStringIO.StringIO(data)