Commit 8a946552 authored by François Grisez's avatar François Grisez

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

parent 1801bce2
...@@ -44,8 +44,8 @@ def parse_lpconfig_line(line): ...@@ -44,8 +44,8 @@ def parse_lpconfig_line(line):
for files in get_files_in_coreapi_directory(): for files in get_files_in_coreapi_directory():
parse_file(files) parse_file(files)
for section, items in items.iteritems(): for section, items in items.items():
print '[' + section + ']' print('[' + section + ']')
for item in items: for item in items:
print item[1] + '=' + item[2] print(item[1] + '=' + item[2])
print '' print('')
\ No newline at end of file
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