Skip to content
Snippets Groups Projects
Commit 3bf5b1fd authored by szeka.wong's avatar szeka.wong
Browse files

Python 3 syntax fix

parent 3c61cace
No related branches found
No related tags found
No related merge requests found
......@@ -81,7 +81,7 @@
def create_autotodo(folder, todolist):
with open('autotodo', 'w+') as f:
for tag, info in todolist.items():
for tag, info in list(todolist.items()):
f.write("%s\n%s\n\n" % (tag, '=' * len(tag)))
write_info(f, info, folder)
......@@ -93,7 +93,7 @@
(root, ext) = os.path.splitext(name)
if ext in exts:
file_info = scan_file(os.path.join(dirname, name), tags)
for tag, info in file_info.items():
for tag, info in list(file_info.items()):
if info:
res[tag].extend(info)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment