diff options
| author | Xusheng <xusheng@vector35.com> | 2023-01-18 11:15:17 +0800 |
|---|---|---|
| committer | Xusheng <xusheng@vector35.com> | 2023-01-19 09:50:35 +0800 |
| commit | e4ab8f35ce16baafe11d7056d1d1304f3c057cd5 (patch) | |
| tree | 415154972bad461bdc2e5a3a93f4c7c6b5f767c0 /python/highlevelil.py | |
| parent | 919384bb2bb9216e000750a00793549ef7a46d87 (diff) | |
Deprecate __len__ of Segment
Print a warning message when a deprecated function/property/class is used
Diffstat (limited to 'python/highlevelil.py')
| -rw-r--r-- | python/highlevelil.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/highlevelil.py b/python/highlevelil.py index 873c7fc7..43a5c68e 100644 --- a/python/highlevelil.py +++ b/python/highlevelil.py @@ -45,6 +45,7 @@ from .commonil import ( BaseILInstruction, Tailcall, Syscall, Localcall, Comparison, Signed, UnaryOperation, BinaryOperation, SSA, Phi, Loop, ControlFlow, Memory, Constant, Arithmetic, DoublePrecision, Terminal, FloatingPoint, Intrinsic, Return ) +from . import deprecation TokenList = List['function.InstructionTextToken'] LinesType = Generator['function.DisassemblyTextLine', None, None] @@ -2092,13 +2093,14 @@ ILInstruction = { } -@decorators.deprecated class HighLevelILExpr: """ ``class HighLevelILExpr`` hold the index of IL Expressions. .. note:: Use ExpressionIndex instead """ + + @deprecation.deprecated(details='HighLevelILExpr is deprecated. Use ExpressionIndex instead') def __init__(self, index: ExpressionIndex): self._index = index |
