Archives

PyGzip

Python stdlib module — gzip. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.compress()Neutral
#
Signature
compress(data, compresslevel, mtime)

Compress data in one shot and return the compressed string.

.decompress()Neutral
#
Signature
decompress(data)

Decompress a gzip compressed string in one shot.

.main()Neutral
#
Signature
main()

main function.

.open()Neutral
#
Signature
open(filename, mode, compresslevel, encoding, errors, newline)

Open a gzip-compressed file in binary or text mode.

.write32u()Neutral
#
Signature
write32u(output, value)

write32u function.

.BadGzipFile()Neutral
#
Signature
BadGzipFile(...)

Exception raised in some cases for invalid gzip files.

.GzipFile()Neutral
#
Signature
GzipFile(...)

The GzipFile class simulates most of the methods of a file object with

Fully-Qualified Names

FQNField
gzipfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

rule.py
import gzip