From 5a288649e8fcb999c11cca17ad0c1956f3ef8e11 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Fri, 24 Sep 2021 09:20:23 -0400 Subject: Use more f-strings --- python/mediumlevelil.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'python/mediumlevelil.py') diff --git a/python/mediumlevelil.py b/python/mediumlevelil.py index ae6c8b01..d890a860 100644 --- a/python/mediumlevelil.py +++ b/python/mediumlevelil.py @@ -271,7 +271,7 @@ class MediumLevelILInstruction: return result def __repr__(self): - return "" % str(self) + return f"" def __eq__(self, other:'MediumLevelILInstruction') -> bool: if not isinstance(other, MediumLevelILInstruction): @@ -2597,9 +2597,9 @@ class MediumLevelILFunction: def __repr__(self): arch = self.source_function.arch if arch: - return "" % (arch.name, self.source_function.start) + return f"" else: - return "" % self.source_function.start + return f"" def __len__(self): return int(core.BNGetMediumLevelILInstructionCount(self.handle)) @@ -3056,9 +3056,9 @@ class MediumLevelILBasicBlock(basicblock.BasicBlock): def __repr__(self): arch = self.arch if arch: - return "" % (arch.name, self.start, self.end) + return f"" else: - return "" % (self.start, self.end) + return f"" def __iter__(self): for idx in range(self.start, self.end): -- cgit v1.3.1