Commit a1f7d1b5 authored by François Grisez's avatar François Grisez

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

(cherry picked from commit 8a946552)
parent e70294f3
......@@ -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('')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment