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/highlevelil.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'python/highlevelil.py') diff --git a/python/highlevelil.py b/python/highlevelil.py index 93e3c3b9..34bfef91 100644 --- a/python/highlevelil.py +++ b/python/highlevelil.py @@ -870,15 +870,15 @@ class HighLevelILInstruction(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 bv.hlil_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 bv.hlil_instructions: + >>> inst.visit(visitor) """ if cb(name, self, "HighLevelILInstruction", parent) == False: return False -- cgit v1.3.1