From 304969ef22b4c58e3e890e77b36adcafbad25175 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Wed, 22 May 2024 23:30:11 -0400 Subject: cleanup all outstanding sphinx RST warnings --- python/mediumlevelil.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'python/mediumlevelil.py') 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 -- cgit v1.3.1