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 15aee04 commit 0110e27Copy full SHA for 0110e27
src/xopen/__init__.py
@@ -58,6 +58,9 @@
58
igzip: Optional[ModuleType]
59
isal_zlib: Optional[ModuleType]
60
igzip_threaded: Optional[ModuleType]
61
+zlib_ng: Optional[ModuleType]
62
+gzip_ng: Optional[ModuleType]
63
+gzip_ng_threaded: Optional[ModuleType]
64
65
try:
66
from isal import igzip, igzip_threaded, isal_zlib
@@ -1070,7 +1073,7 @@ def _open_gz( # noqa: C901
1070
1073
)
1071
1074
except ValueError: # Wrong compression level
1072
1075
pass
- if gzip_ng_threaded and threads != 0:
1076
+ if gzip_ng_threaded and zlib_ng and threads != 0:
1077
1078
if compresslevel is None:
1079
level = zlib_ng.Z_DEFAULT_COMPRESSION
0 commit comments