summaryrefslogtreecommitdiff
path: root/python/function.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2021-08-27 12:51:26 -0400
committerPeter LaFosse <peter@vector35.com>2021-09-06 11:46:38 -0400
commite7400c394eca465d2a54a70c16bb175e4521de91 (patch)
treea8bcfbafdbcc0bbb401b98a557fa564827a65c55 /python/function.py
parent5c14a62561b94f453dd41ea92634ac4151a4e3a6 (diff)
Use more f-strings
Diffstat (limited to 'python/function.py')
-rw-r--r--python/function.py4
1 files changed, 2 insertions, 2 deletions
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__):