I/O & Encoding

PyUnidiff

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

Other Methods

.Hunk()Neutral
#
Signature
Hunk(...)

Hunk class.

.PatchSet()Neutral
#
Signature
PatchSet(...)

PatchSet class.

.PatchedFile()Neutral
#
Signature
PatchedFile(...)

PatchedFile class.

.UnidiffParseError()Neutral
#
Signature
UnidiffParseError(...)

UnidiffParseError class.

.errors.UnidiffParseError()Neutral
#
Signature
errors.UnidiffParseError(...)

errors.UnidiffParseError class.

.patch.Hunk()Neutral
#
Signature
patch.Hunk(...)

patch.Hunk class.

.patch.Line()Neutral
#
Signature
patch.Line(...)

patch.Line class.

.patch.PatchInfo()Neutral
#
Signature
patch.PatchInfo(...)

patch.PatchInfo class.

.patch.PatchSet()Neutral
#
Signature
patch.PatchSet(...)

patch.PatchSet class.

.patch.PatchedFile()Neutral
#
Signature
patch.PatchedFile(...)

patch.PatchedFile class.

Fully-Qualified Names

FQNField
unidifffqns[0]

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

Import

rule.py
import unidiff