This commit is contained in:
Kovid Goyal 2019-04-10 14:59:53 +05:30
parent 8569717d98
commit 09ae07631b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -309,7 +309,7 @@ class MetadataHeader(BookHeader):
def identity(self):
self.stream.seek(60)
ident = self.stream.read(8).upper()
if ident not in ['BOOKMOBI', 'TEXTREAD']:
if ident not in [b'BOOKMOBI', b'TEXTREAD']:
raise MobiError('Unknown book type: %s' % ident)
return ident