aboutsummaryrefslogtreecommitdiff
path: root/target/hexagon/gen_shortcode.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/gen_shortcode.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/gen_shortcode.py')
-rwxr-xr-xtarget/hexagon/gen_shortcode.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/hexagon/gen_shortcode.py b/target/hexagon/gen_shortcode.py
index 9b589d0189..9a093a8902 100755
--- a/target/hexagon/gen_shortcode.py
+++ b/target/hexagon/gen_shortcode.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
##
-## Copyright(c) 2019-2021 Qualcomm Innovation Center, Inc. All Rights Reserved.
+## Copyright(c) 2019-2023 Qualcomm Innovation Center, Inc. All Rights Reserved.
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
@@ -23,7 +23,7 @@ import string
import hex_common
def gen_shortcode(f, tag):
- f.write('DEF_SHORTCODE(%s, %s)\n' % (tag, hex_common.semdict[tag]))
+ f.write(f'DEF_SHORTCODE({tag}, {hex_common.semdict[tag]})\n')
def main():
hex_common.read_semantics_file(sys.argv[1])