aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorVolodymyr Babchuk <vlad.babchuk@gmail.com>2018-12-18 23:55:26 +0200
committerJérôme Forissier <jerome.forissier@linaro.org>2018-12-19 14:26:51 +0100
commit666bec33aba287bfab022ecefeacc5c03defeaa7 (patch)
tree26f16e5e9442c2d96157eed72eff1ea1b1d29409 /scripts
parentdbf259beb7386b7119b6621fc7095bd2d98462fa (diff)
gen_ld_sects: call `print` as a function
With this change gen_ld_sects.py will be compatible with python3. Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gen_ld_sects.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/gen_ld_sects.py b/scripts/gen_ld_sects.py
index f8c897d6..43e812b5 100755
--- a/scripts/gen_ld_sects.py
+++ b/scripts/gen_ld_sects.py
@@ -9,8 +9,8 @@ import re
def usage():
- print "Usage: {0} <section reg exp match> [<skip section>...]".format(
- sys.argv[0])
+ print("Usage: {0} <section reg exp match> [<skip section>...]".format(
+ sys.argv[0]))
sys.exit(1)
@@ -57,7 +57,7 @@ def main():
if sect_name in skip_sections:
continue
- print '\t*({0})'.format(sect_name)
+ print('\t*({0})'.format(sect_name))
if __name__ == "__main__":