Skip to content

Commit f366401

Browse files
committed
Remove comment artifacts
1 parent c4c8917 commit f366401

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/isal/isal_zlib.pyx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def decompress(data,
304304

305305
# Implementation imitated from CPython's zlibmodule.c
306306
try:
307-
while True:#ibuflen != 0 or stream.block_state != ISAL_BLOCK_FINISH:
307+
while True:
308308
arrange_input_buffer(&stream, &ibuflen)
309309

310310
# This loop reads all the input bytes. The check is at the end,
@@ -444,12 +444,12 @@ cdef class Compress:
444444
# initialise helper variables
445445
cdef int err
446446
try:
447-
while True: #ibuflen !=0:
447+
while True:
448448
# This loop runs n times (at least twice). n-1 times to fill the input
449449
# buffer with data. The nth time the input is empty. In that case
450450
# stream.flush is set to FULL_FLUSH and the end_of_stream is activated.
451451
arrange_input_buffer(&self.stream, &ibuflen)
452-
while True: #self.stream.avail_in != 0:
452+
while True:
453453
obuflen = arrange_output_buffer(&self.stream, &obuf, obuflen)
454454
if obuflen== -1:
455455
raise MemoryError("Unsufficient memory for buffer allocation")
@@ -633,7 +633,7 @@ cdef class Decompress:
633633
# anymore the output is written.
634634
while True:
635635
arrange_input_buffer(&self.stream, &ibuflen)
636-
while True:#(self.stream.avail_out == 0 or self.stream.avail_in != 0):
636+
while True:
637637
obuflen = arrange_output_buffer_with_maximum(
638638
&self.stream, &obuf, obuflen, hard_limit)
639639
if obuflen == -1:

0 commit comments

Comments
 (0)