From 7c5ad95675d34c794774472d19641b0c809706d3 Mon Sep 17 00:00:00 2001 From: Ruben Vorderman Date: Tue, 23 Jan 2024 13:42:20 +0100 Subject: [PATCH] Make sure threads are passed to igzip_threaded if specified --- src/xopen/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xopen/__init__.py b/src/xopen/__init__.py index 65431b1..e54fcc4 100644 --- a/src/xopen/__init__.py +++ b/src/xopen/__init__.py @@ -495,7 +495,7 @@ def _open_gz(filename, mode: str, compresslevel, threads): # noqa: C901 filename, mode, compresslevel, - threads=1, + threads=threads or 1, ) if gzip_ng_threaded and zlib_ng: try: