Language Features

PyCodecs

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

Other Methods

.EncodedFile()Neutral
#
Signature
EncodedFile(file, data_encoding, file_encoding, errors)

Return a wrapped version of file which provides transparent

.ascii_decode()Neutral
#
Signature
ascii_decode(data, errors)

ascii_decode function.

.ascii_encode()Neutral
#
Signature
ascii_encode(str, errors)

ascii_encode function.

.backslashreplace_errors()Neutral
#
Signature
backslashreplace_errors()

Implements the 'backslashreplace' error handling, which replaces malformed data with a backslashed escape sequence.

.charmap_build()Neutral
#
Signature
charmap_build(map)

charmap_build function.

.charmap_decode()Neutral
#
Signature
charmap_decode(data, errors, mapping)

charmap_decode function.

.charmap_encode()Neutral
#
Signature
charmap_encode(str, errors, mapping)

charmap_encode function.

.decode()Neutral
#
Signature
decode(obj, encoding, errors)

Decodes obj using the codec registered for encoding.

.encode()Neutral
#
Signature
encode(obj, encoding, errors)

Encodes obj using the codec registered for encoding.

.escape_decode()Neutral
#
Signature
escape_decode(data, errors)

escape_decode function.

Fully-Qualified Names

FQNField
codecsfqns[0]

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

Import

rule.py
import codecs