Skip to content

Commit a70464a

Browse files
committed
Fix linting issues
1 parent 08ab5c1 commit a70464a

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

benchmark_scripts/benchmark_cgzipreader.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
from isal.isal_zlib import _IGzipReader
2-
31
import sys
42

3+
from isal.isal_zlib import _GzipReader
4+
55
if __name__ == "__main__":
66
with open(sys.argv[1], "rb") as f:
7-
reader = _IGzipReader(f, 512 * 1024)
7+
reader = _GzipReader(f, 512 * 1024)
88
while True:
99
block = reader.read(128 * 1024)
1010
if not block:

src/isal/igzip.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@
3636
import sys
3737
import time
3838
from typing import Optional, SupportsInt
39-
import _compression # noqa: I201 # Not third-party
4039

4140
from . import igzip_lib, isal_zlib
42-
from .isal_zlib import _GzipReader
41+
from .isal_zlib import _GzipReader
4342

4443
__all__ = ["IGzipFile", "open", "compress", "decompress", "BadGzipFile",
4544
"READ_BUFFER_SIZE"]

tests/test_gzip_compliance.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,6 @@ def test_read_with_extra(self):
639639
with igzip.GzipFile(fileobj=io.BytesIO(gzdata)) as f:
640640
self.assertEqual(f.read(), b'Test')
641641

642-
643642
def test_public_consts(self):
644643
# Confirm that all of the gzip module public consts are
645644
# also accessible via igzip, for drop-in compatibility.

0 commit comments

Comments
 (0)