We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f909a6a commit 66589cfCopy full SHA for 66589cf
src/isal/isal_zlib.pyx
@@ -362,6 +362,10 @@ cdef class Compress:
362
PyBuffer_Release(buffer)
363
364
def flush(self, int mode=FULL_FLUSH):
365
+ if mode == NO_FLUSH:
366
+ # Flushing with no_flush does nothing.
367
+ return b""
368
+
369
# Initialise stream
370
self.stream.flush = mode
371
self.stream.end_of_stream = 1
0 commit comments