Makes lpconfig_items.py to support both python 2 and 3.

(cherry picked from commit 8a946552f6)
This commit is contained in:
François Grisez 2018-05-09 14:23:30 +02:00
parent e70294f3f3
commit a1f7d1b562

8
tools/lpconfig_items.py Normal file → Executable file
View file

@ -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 ''
print(item[1] + '=' + item[2])
print('')