From 666bec33aba287bfab022ecefeacc5c03defeaa7 Mon Sep 17 00:00:00 2001 From: Volodymyr Babchuk Date: Tue, 18 Dec 2018 23:55:26 +0200 Subject: 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 Acked-by: Jens Wiklander Reviewed-by: Joakim Bech --- scripts/gen_ld_sects.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts') 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}
[...]".format( - sys.argv[0]) + print("Usage: {0}
[...]".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__": -- cgit v1.2.3