From e8d6feb5e0b2f8201e06c3cbd5c25194829761d8 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Thu, 29 Jun 2023 11:36:48 -0400 Subject: Improve __repr__ for IL instructions, and related objects --- python/highlevelil.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'python/highlevelil.py') diff --git a/python/highlevelil.py b/python/highlevelil.py index 60359a20..976ebc79 100644 --- a/python/highlevelil.py +++ b/python/highlevelil.py @@ -79,8 +79,8 @@ class HighLevelILOperationAndSize: def __repr__(self): if self.size == 0: - return f"<{self.operation.name}>" - return f"<{self.operation.name} {self.size}>" + return f"" + return f"" @dataclass @@ -89,7 +89,7 @@ class GotoLabel: id: int def __repr__(self): - return f"" + return f"" def __str__(self): return self.name @@ -351,7 +351,7 @@ class HighLevelILInstruction(BaseILInstruction): first_line += token.text if len(list(lines)) > 1: continuation = "..." - return f"<{self.operation.name}: {first_line}{continuation}>" + return f"<{self.__class__.__name__}: {first_line}{continuation}>" def __eq__(self, other: 'HighLevelILInstruction'): if not isinstance(other, HighLevelILInstruction): -- cgit v1.3.1