Skip to content

Commit

Permalink
Make sure threads are passed to igzip_threaded if specified
Browse files Browse the repository at this point in the history
  • Loading branch information
rhpvorderman committed Jan 23, 2024
1 parent 1a67359 commit 7c5ad95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xopen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7c5ad95

Please sign in to comment.