Skip to content

Commit 699ff8c

Browse files
committed
Rename _IGzipReader to _GzipReader
1 parent 48c7005 commit 699ff8c

File tree

3 files changed

+74
-74
lines changed

3 files changed

+74
-74
lines changed

src/isal/igzip.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
import _compression # noqa: I201 # Not third-party
4040

4141
from . import igzip_lib, isal_zlib
42-
from .isal_zlib import _IGzipReader
42+
from .isal_zlib import _GzipReader
4343

4444
__all__ = ["IGzipFile", "open", "compress", "decompress", "BadGzipFile",
4545
"READ_BUFFER_SIZE"]
@@ -169,7 +169,7 @@ def __init__(self, filename=None, mode=None,
169169
if self.mode == READ:
170170
# Having a large input buffer seems to work well for both normal
171171
# gzip and BGZIP files.
172-
raw = _IGzipReader(self.fileobj, 512 * 1024)
172+
raw = _GzipReader(self.fileobj, 512 * 1024)
173173
self._buffer = io.BufferedReader(raw)
174174

175175
def __repr__(self):
@@ -225,7 +225,7 @@ def write(self, data):
225225

226226
# Aliases for improved compatibility with CPython gzip module.
227227
GzipFile = IGzipFile
228-
_GzipReader = _IGzipReader
228+
_IGzipReader = _GzipReader
229229

230230

231231
def _create_simple_gzip_header(compresslevel: int,
@@ -267,7 +267,7 @@ def decompress(data):
267267
gzip member is guaranteed to be present.
268268
"""
269269
fp = io.BytesIO(data)
270-
reader = _IGzipReader(fp)
270+
reader = _GzipReader(fp)
271271
return reader.readall()
272272

273273

src/isal/isal_zlib.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,5 @@ def compressobj(level: int = ISAL_DEFAULT_COMPRESSION,
6565
zdict = None) -> Compress: ...
6666
def decompressobj(wbits: int = MAX_WBITS, zdict = None) -> Decompress: ...
6767

68-
class _IGzipReader(io.RawIOBase):
68+
class _GzipReader(io.RawIOBase):
6969
def __init__(self, fp: typing.BinaryIO, buffersize: int = 32 * 1024): ...

0 commit comments

Comments
 (0)