Skip to content

Commit 0226aa0

Browse files
committed
Set buffer_size at latest position for backwards compatibility
1 parent 8327101 commit 0226aa0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/isal/igzip_threaded.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,11 @@ class _ThreadedGzipWriter(io.RawIOBase):
198198
"""
199199
def __init__(self,
200200
fp: BinaryIO,
201-
buffer_size: int = 1024 * 1024,
202201
level: int = isal_zlib.ISAL_DEFAULT_COMPRESSION,
203202
threads: int = 1,
204-
queue_size: int = 1):
203+
queue_size: int = 1,
204+
buffer_size: int = 1024 * 1024,
205+
):
205206
self.lock = threading.Lock()
206207
self.exception: Optional[Exception] = None
207208
self.raw = fp

0 commit comments

Comments
 (0)