diff options
author | Volodymyr Babchuk <vlad.babchuk@gmail.com> | 2018-12-18 23:55:26 +0200 |
---|---|---|
committer | Jérôme Forissier <jerome.forissier@linaro.org> | 2018-12-19 14:26:51 +0100 |
commit | 666bec33aba287bfab022ecefeacc5c03defeaa7 (patch) | |
tree | 26f16e5e9442c2d96157eed72eff1ea1b1d29409 /scripts | |
parent | dbf259beb7386b7119b6621fc7095bd2d98462fa (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-x | scripts/gen_ld_sects.py | 6 |
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__": |