Mercurial > hg > cc > cirrus_work
changeset 352:4497f2ad3a6f trim
back to igzip
| author | Henry S. Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Thu, 12 Mar 2026 18:28:27 +0000 |
| parents | 444ddf704502 |
| children | 6b1137bdbd0d |
| files | lib/python/cc/warc.py |
| diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/python/cc/warc.py Thu Mar 12 18:20:01 2026 +0000 +++ b/lib/python/cc/warc.py Thu Mar 12 18:28:27 2026 +0000 @@ -5,7 +5,7 @@ part''' import sys, io -#from isal import igzip +from isal import igzip import cython, typing, gzip INFO: int = 0 @@ -44,7 +44,7 @@ except gzip.BadGzipFile: stream = open(filename, 'rb', 0) else: - stream = gzip.GzipFile(filename = filename) + stream = igzip.IGzipFile(filename = filename) buf: char[::1] = bytearray(BUFSIZE) bufView: char[::1] = memoryview(buf) fpos: int = 0
