mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
83151cc1f0
commit
853b1f6012
@ -157,7 +157,7 @@ def compress_readable_output(src_file, compress_level=6):
|
|||||||
size = 0
|
size = 0
|
||||||
zobj = zlib.compressobj(compress_level,
|
zobj = zlib.compressobj(compress_level,
|
||||||
zlib.DEFLATED, -zlib.MAX_WBITS,
|
zlib.DEFLATED, -zlib.MAX_WBITS,
|
||||||
zlib.DEF_MEM_LEVEL, 0)
|
zlib.DEF_MEM_LEVEL, zlib.Z_DEFAULT_STRATEGY)
|
||||||
prefix_written = False
|
prefix_written = False
|
||||||
while True:
|
while True:
|
||||||
data = src_file.read(DEFAULT_BUFFER_SIZE)
|
data = src_file.read(DEFAULT_BUFFER_SIZE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user