diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/architecture.py | 4 | ||||
| -rw-r--r-- | python/function.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/python/architecture.py b/python/architecture.py index 46f21f88..1ca6d9c6 100644 --- a/python/architecture.py +++ b/python/architecture.py @@ -77,7 +77,7 @@ class RegisterInfo: extend = ", sign extend" else: extend = "" - return "<reg: size %d, offset %d in %s%s>" % (self.size, self.offset, self.full_width_reg, extend) + return f"<reg: size {self.size}, offset {self.offset} in {self.full_width_reg}{extend}>" @dataclass(frozen=False) @@ -88,7 +88,7 @@ class RegisterStackInfo: index:Optional[RegisterStackIndex] = None def __repr__(self): - return "<reg stack: %d regs, stack top in %s>" % (len(self.storage_regs), self.stack_top_reg) + return f"<reg stack: {len(self.storage_regs)} regs, stack top in {self.stack_top_reg}>" @dataclass(frozen=True) diff --git a/python/function.py b/python/function.py index 515c1008..ed157ba7 100644 --- a/python/function.py +++ b/python/function.py @@ -272,9 +272,9 @@ class Function: def __repr__(self): arch = self.arch if arch: - return "<func: %s@%#x>" % (arch.name, self.start) + return f"<func: {arch.name}@{self.start:#x}>" else: - return "<func: %#x>" % self.start + return f"<func: {self.start:#x}>" def __eq__(self, other:'Function') -> bool: if not isinstance(other, self.__class__): |
