mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
3c8ce70263
commit
b29ff973a2
@ -101,7 +101,7 @@ class PalmDB(object):
|
||||
return '\n'.join(ans)
|
||||
# }}}
|
||||
|
||||
class Record(object): # {{{
|
||||
class Record(object): # {{{
|
||||
|
||||
def __init__(self, raw, header):
|
||||
self.offset, self.flags, self.uid = header
|
||||
@ -160,17 +160,17 @@ class EXTHRecord(object):
|
||||
202 : 'ThumbOffset',
|
||||
203 : 'Fake Cover',
|
||||
204 : 'Creator Software',
|
||||
205 : 'Creator Major Version', # '>I'
|
||||
206 : 'Creator Minor Version', # '>I'
|
||||
207 : 'Creator Build Number', # '>I'
|
||||
205 : 'Creator Major Version', # '>I'
|
||||
206 : 'Creator Minor Version', # '>I'
|
||||
207 : 'Creator Build Number', # '>I'
|
||||
208 : 'Watermark',
|
||||
209 : 'Tamper Proof Keys [hex]',
|
||||
300 : 'Font Signature [hex]',
|
||||
301 : 'Clipping Limit [3xx]', # percentage '>B'
|
||||
401 : 'Clipping Limit', # percentage '>B'
|
||||
301 : 'Clipping Limit [3xx]', # percentage '>B'
|
||||
401 : 'Clipping Limit', # percentage '>B'
|
||||
402 : 'Publisher Limit',
|
||||
404 : 'Text to Speech Disabled', # '>B' 1 - TTS disabled 0 - TTS enabled
|
||||
501 : 'CDE Type', # 4 chars (PDOC, EBOK, MAGZ, ...)
|
||||
404 : 'Text to Speech Disabled', # '>B' 1 - TTS disabled 0 - TTS enabled
|
||||
501 : 'CDE Type', # 4 chars (PDOC, EBOK, MAGZ, ...)
|
||||
502 : 'last_update_time',
|
||||
503 : 'Updated Title',
|
||||
504 : 'ASIN [5xx]',
|
||||
@ -243,7 +243,7 @@ class EXTHHeader(object):
|
||||
return '\n'.join(ans)
|
||||
# }}}
|
||||
|
||||
class MOBIHeader(object): # {{{
|
||||
class MOBIHeader(object): # {{{
|
||||
|
||||
def __init__(self, record0, offset):
|
||||
self.raw = record0.raw
|
||||
@ -455,7 +455,7 @@ class MOBIHeader(object): # {{{
|
||||
a(('Extra data flags: %s (has multibyte: %s) '
|
||||
'(has indexing: %s) (has uncrossable breaks: %s)')%(
|
||||
bin(self.extra_data_flags), self.has_multibytes,
|
||||
self.has_indexing_bytes, self.has_uncrossable_breaks ))
|
||||
self.has_indexing_bytes, self.has_uncrossable_breaks))
|
||||
r('NCX index', 'primary_index_record')
|
||||
if self.length >= 248:
|
||||
r('Sections Index', 'sect_idx')
|
||||
@ -551,7 +551,7 @@ class MOBIFile(object):
|
||||
|
||||
self.decompress6, self.decompress8 = d6, d8
|
||||
|
||||
class TextRecord(object): # {{{
|
||||
class TextRecord(object): # {{{
|
||||
|
||||
def __init__(self, idx, record, extra_data_flags, decompress):
|
||||
self.trailing_data, self.raw = get_trailing_data(record.raw, extra_data_flags)
|
||||
|
Loading…
x
Reference in New Issue
Block a user