From 8a946552f6c9ad96da9098846a32c8a74851d0dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Grisez?= Date: Wed, 9 May 2018 14:23:30 +0200 Subject: [PATCH] Makes lpconfig_items.py to support both python 2 and 3. --- tools/lpconfig_items.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) mode change 100644 => 100755 tools/lpconfig_items.py diff --git a/tools/lpconfig_items.py b/tools/lpconfig_items.py old mode 100644 new mode 100755 index 6c002c5ab..435cf33d5 --- a/tools/lpconfig_items.py +++ b/tools/lpconfig_items.py @@ -44,8 +44,8 @@ def parse_lpconfig_line(line): for files in get_files_in_coreapi_directory(): parse_file(files) -for section, items in items.iteritems(): - print '[' + section + ']' +for section, items in items.items(): + print('[' + section + ']') for item in items: - print item[1] + '=' + item[2] - print '' \ No newline at end of file + print(item[1] + '=' + item[2]) + print('')