mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-03 20:06:34 +01:00
ztxt cleanup
This commit is contained in:
parent
6bfe619896
commit
aa7cd1c4d8
1 changed files with 0 additions and 5 deletions
|
|
@ -28,7 +28,6 @@ def __init__(self, raw):
|
|||
self.num_records, = struct.unpack('>H', raw[2:4])
|
||||
self.size, = struct.unpack('>L', raw[4:8])
|
||||
self.record_size, = struct.unpack('>H', raw[8:10])
|
||||
self.crc32, = struct.unpack('>L', raw[18:22])
|
||||
|
||||
|
||||
class Reader(FormatReader):
|
||||
|
|
@ -47,10 +46,6 @@ def __init__(self, header, stream, log, encoding=None):
|
|||
# Initalize the decompressor
|
||||
self.uncompressor = zlib.decompressobj()
|
||||
self.uncompressor.decompress(self.section_data(1))
|
||||
|
||||
# if self.header_record.version not in (1, 2) or self.header_record.uid != 1:
|
||||
# raise zTXTError('Unknown book version %i.' % self.header_record.version)
|
||||
|
||||
|
||||
def section_data(self, number):
|
||||
return self.sections[number]
|
||||
|
|
|
|||
Loading…
Reference in a new issue