sdk/python/I/O & Encoding/PyWhatthepatch
I/O & Encoding

PyWhatthepatch

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

Other Methods

.apply.apply_diff()Neutral
#
Signature
apply.apply_diff(diff, text, reverse, use_patch)

apply.apply_diff function.

.apply.apply_patch()Neutral
#
Signature
apply.apply_patch(diffs)

apply.apply_patch function.

.apply_diff()Neutral
#
Signature
apply_diff(diff, text, reverse, use_patch)

apply_diff function.

.parse_patch()Neutral
#
Signature
parse_patch(text)

parse_patch function.

.patch.parse_context_diff()Neutral
#
Signature
patch.parse_context_diff(text)

patch.parse_context_diff function.

.patch.parse_context_header()Neutral
#
Signature
patch.parse_context_header(text)

patch.parse_context_header function.

.patch.parse_cvs_header()Neutral
#
Signature
patch.parse_cvs_header(text)

patch.parse_cvs_header function.

.patch.parse_default_diff()Neutral
#
Signature
patch.parse_default_diff(text)

patch.parse_default_diff function.

.patch.parse_diff()Neutral
#
Signature
patch.parse_diff(text)

patch.parse_diff function.

.patch.parse_diff_header()Neutral
#
Signature
patch.parse_diff_header(text)

patch.parse_diff_header function.

Fully-Qualified Names

FQNField
whatthepatchfqns[0]

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

Import

rule.py
import whatthepatch