reviewboard.diffviewer.smdiff¶
Differ implementation using difflib.SequenceMatcher.
- class SMDiffer(a: Sequence[str], b: Sequence[str], ignore_space: bool = False, compat_version: int = 2)[source]¶
Bases:
DifferWrapper around SequenceMatcher.
This class works around bugs in how SequenceMatcher does its matching.
- get_opcodes() Iterator[DiffOpcode][source]¶
Yield the opcodes for the diff.
- Yields:
reviewboard.diffviewer.differ.DiffOpcode– The opcodes for the diff.