diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2024-05-22 23:30:11 -0400 |
|---|---|---|
| committer | Jordan Wiens <jordan@psifertex.com> | 2024-05-22 23:30:11 -0400 |
| commit | 304969ef22b4c58e3e890e77b36adcafbad25175 (patch) | |
| tree | bd93b532b30d78bec7ce56c3ccceebc4ec997de5 /python/mediumlevelil.py | |
| parent | e11e177d96736ab665b0cc37c19f184b93690fe2 (diff) | |
cleanup all outstanding sphinx RST warnings
Diffstat (limited to 'python/mediumlevelil.py')
| -rw-r--r-- | python/mediumlevelil.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/python/mediumlevelil.py b/python/mediumlevelil.py index bd13afa2..b6f4a664 100644 --- a/python/mediumlevelil.py +++ b/python/mediumlevelil.py @@ -546,15 +546,15 @@ class MediumLevelILInstruction(BaseILInstruction): :return: True if all instructions were visited, False if the callback returned False :Example: - >>> def visitor(_a, inst, _c, _d) -> bool: - >>> if isinstance(inst, Constant): - >>> print(f"Found constant: {inst.constant}") - >>> return False # Stop recursion (once we find a constant, don't recurse in to any sub-instructions (which there won't actually be any...)) - >>> # Otherwise, keep recursing the subexpressions of this instruction; if no return value is provided, it'll keep descending - >>> - >>> # Finds all constants used in the program - >>> for inst in current_mlil.instructions: - >>> inst.visit(visitor) + >>> def visitor(_a, inst, _c, _d) -> bool: + >>> if isinstance(inst, Constant): + >>> print(f"Found constant: {inst.constant}") + >>> return False # Stop recursion (once we find a constant, don't recurse in to any sub-instructions (which there won't actually be any...)) + >>> # Otherwise, keep recursing the subexpressions of this instruction; if no return value is provided, it'll keep descending + >>> + >>> # Finds all constants used in the program + >>> for inst in current_mlil.instructions: + >>> inst.visit(visitor) """ if cb(name, self, "MediumLevelILInstruction", parent) == False: return False |
