From 2c6896c525e7c0d6dfa37f60ecd6f40d42d36f66 Mon Sep 17 00:00:00 2001 From: anonymous <29055749+idiomaticrefactoring@users.noreply.github.com> Date: Tue, 19 Dec 2023 15:39:03 +1100 Subject: [PATCH] Update Types.py refactor with fstring to format string to make code more Pythonic. --- GO_Utils/Types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GO_Utils/Types.py b/GO_Utils/Types.py index d28f212..44e0af3 100644 --- a/GO_Utils/Types.py +++ b/GO_Utils/Types.py @@ -728,7 +728,7 @@ def processMethods(self, offst): func_addr1 = self.text_addr + func_body1 func_body2 = self.getDword(sid, offst, "tfn") func_addr2 = self.text_addr + func_body1 - return "%s %x %x %x" % (name, type_meth_addr1, func_addr1, func_addr2) + return f"{name} {type_meth_addr1} {func_addr1} {func_addr2}" def makeMap(self, offset): idc.SetType(offset, "mapType")