Python stdlib module — gzip. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.compress()Neutralcompress(data, compresslevel, mtime)
Compress data in one shot and return the compressed string.
.open()Neutralopen(filename, mode, compresslevel, encoding, errors, newline)
Open a gzip-compressed file in binary or text mode.
.BadGzipFile()NeutralBadGzipFile(...)
Exception raised in some cases for invalid gzip files.
.GzipFile()NeutralGzipFile(...)
The GzipFile class simulates most of the methods of a file object with
| FQN | Field | |
|---|---|---|
| gzip | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
import gzip