summaryrefslogtreecommitdiff
path: root/python/highlevelil.py
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2024-05-22 23:30:11 -0400
committerJordan Wiens <jordan@psifertex.com>2024-05-22 23:30:11 -0400
commit304969ef22b4c58e3e890e77b36adcafbad25175 (patch)
treebd93b532b30d78bec7ce56c3ccceebc4ec997de5 /python/highlevelil.py
parente11e177d96736ab665b0cc37c19f184b93690fe2 (diff)
cleanup all outstanding sphinx RST warnings
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