mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
c2fde795af
commit
c1d49333a0
@ -163,7 +163,8 @@ class MOBIFile(object):
|
|||||||
ext = 'dat'
|
ext = 'dat'
|
||||||
prefix = 'binary'
|
prefix = 'binary'
|
||||||
suffix = ''
|
suffix = ''
|
||||||
if sig in {b'HUFF', b'CDIC', b'INDX'}: continue
|
if sig in {b'HUFF', b'CDIC', b'INDX'}:
|
||||||
|
continue
|
||||||
# TODO: Ignore CNCX records as well
|
# TODO: Ignore CNCX records as well
|
||||||
if sig == b'FONT':
|
if sig == b'FONT':
|
||||||
font = read_font_record(rec.raw)
|
font = read_font_record(rec.raw)
|
||||||
@ -196,7 +197,6 @@ class MOBIFile(object):
|
|||||||
vals = list(index)[:-1] + [None, None, None, None]
|
vals = list(index)[:-1] + [None, None, None, None]
|
||||||
entry_map.append(Entry(*(vals[:12])))
|
entry_map.append(Entry(*(vals[:12])))
|
||||||
|
|
||||||
|
|
||||||
indexing_data = collect_indexing_data(entry_map, list(map(len,
|
indexing_data = collect_indexing_data(entry_map, list(map(len,
|
||||||
self.text_records)))
|
self.text_records)))
|
||||||
self.indexing_data = [DOC + '\n' +textwrap.dedent('''\
|
self.indexing_data = [DOC + '\n' +textwrap.dedent('''\
|
||||||
|
Loading…
x
Reference in New Issue
Block a user