Skip to content

Commit 1466015

Browse files
committed
Add alias for better compliance
1 parent 9b44c25 commit 1466015

File tree

2 files changed

+74
-70
lines changed

2 files changed

+74
-70
lines changed

src/isal/igzip.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,11 @@ def _add_read_data(self, data):
212212
self._stream_size += len(data)
213213

214214

215+
# Aliases for improved compatibility with CPython gzip module.
216+
GzipFile = IGzipFile
217+
_GzipReader = _IGzipReader
218+
219+
215220
# Plagiarized from gzip.py from python's stdlib.
216221
def compress(data, compresslevel=_COMPRESS_LEVEL_BEST, *, mtime=None):
217222
"""Compress data in one shot and return the compressed string.

0 commit comments

Comments
 (0)