Show More
@@ -3124,7 +3124,10 b' class _zlibengine(compressionengine):' | |||||
3124 | def gen(): |
|
3124 | def gen(): | |
3125 | d = zlib.decompressobj() |
|
3125 | d = zlib.decompressobj() | |
3126 | for chunk in filechunkiter(fh): |
|
3126 | for chunk in filechunkiter(fh): | |
3127 |
|
|
3127 | while chunk: | |
|
3128 | # Limit output size to limit memory. | |||
|
3129 | yield d.decompress(chunk, 2 ** 18) | |||
|
3130 | chunk = d.unconsumed_tail | |||
3128 |
|
3131 | |||
3129 | return chunkbuffer(gen()) |
|
3132 | return chunkbuffer(gen()) | |
3130 |
|
3133 |
General Comments 0
You need to be logged in to leave comments.
Login now