@@ -304,7 +304,7 @@ def decompress(data,
304
304
305
305
# Implementation imitated from CPython's zlibmodule.c
306
306
try :
307
- while True :# ibuflen != 0 or stream.block_state != ISAL_BLOCK_FINISH:
307
+ while True :
308
308
arrange_input_buffer(& stream, & ibuflen)
309
309
310
310
# This loop reads all the input bytes. The check is at the end,
@@ -444,12 +444,12 @@ cdef class Compress:
444
444
# initialise helper variables
445
445
cdef int err
446
446
try :
447
- while True : # ibuflen !=0:
447
+ while True :
448
448
# This loop runs n times (at least twice). n-1 times to fill the input
449
449
# buffer with data. The nth time the input is empty. In that case
450
450
# stream.flush is set to FULL_FLUSH and the end_of_stream is activated.
451
451
arrange_input_buffer(& self .stream, & ibuflen)
452
- while True : # self.stream.avail_in != 0:
452
+ while True :
453
453
obuflen = arrange_output_buffer(& self .stream, & obuf, obuflen)
454
454
if obuflen== - 1 :
455
455
raise MemoryError (" Unsufficient memory for buffer allocation" )
@@ -633,7 +633,7 @@ cdef class Decompress:
633
633
# anymore the output is written.
634
634
while True :
635
635
arrange_input_buffer(& self .stream, & ibuflen)
636
- while True :# (self.stream.avail_out == 0 or self.stream.avail_in != 0):
636
+ while True :
637
637
obuflen = arrange_output_buffer_with_maximum(
638
638
& self .stream, & obuf, obuflen, hard_limit)
639
639
if obuflen == - 1 :
0 commit comments