aboutsummaryrefslogtreecommitdiff
path: root/target/hexagon/hex_common.py
diff options
context:
space:
mode:
authorMarco Liebel <quic_mliebel@quicinc.com>2023-03-20 02:25:32 -0700
committerTaylor Simpson <tsimpson@quicinc.com>2023-04-21 09:32:51 -0700
commitcd6c4edff69ce6ba0aa8e6ed702f43a042a456bc (patch)
tree82c755c9cabccd87f50aaca25c8dddde40d9bf08 /target/hexagon/hex_common.py
parentbee1fc56c2fae6fb96cc54b24a3a7ed7767a2f4a (diff)
Use f-strings in python scripts
Replace python 2 format string with f-strings Signed-off-by: Marco Liebel <quic_mliebel@quicinc.com> Signed-off-by: Taylor Simpson <tsimpson@quicinc.com> Reviewed-by: Taylor Simpson <tsimpson@quicinc.com> Tested-by: Taylor Simpson <tsimpson@quicinc.com> Message-Id: <20230320092533.2859433-2-quic_mliebel@quicinc.com>
Diffstat (limited to 'target/hexagon/hex_common.py')
-rwxr-xr-xtarget/hexagon/hex_common.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/hexagon/hex_common.py b/target/hexagon/hex_common.py
index 0200a66cb6..9f9da81e20 100755
--- a/target/hexagon/hex_common.py
+++ b/target/hexagon/hex_common.py
@@ -55,7 +55,7 @@ def expand_macro_attribs(macro,allmac_re):
for submacro in l:
if not submacro: continue
if not macros[submacro]:
- raise Exception("Couldn't find macro: <%s>" % l)
+ raise Exception(f"Couldn't find macro: <{l}>")
macro.attribs |= expand_macro_attribs(
macros[submacro], allmac_re)
finished_macros.add(macro.key)
@@ -258,7 +258,7 @@ def is_idef_parser_enabled(tag):
return tag in idef_parser_enabled
def imm_name(immlett):
- return "%siV" % immlett
+ return f"{immlett}iV"
def read_semantics_file(name):
eval_line = ""