summaryrefslogtreecommitdiff
path: root/python/highlevelil.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/highlevelil.py')
-rw-r--r--python/highlevelil.py18
1 files changed, 9 insertions, 9 deletions
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