Skip to content

Commit

Permalink
Fix py3 iterator behavior.
Browse files Browse the repository at this point in the history
This was already committed in another branch, but we have so many flying
around now I can't find it.  Credit due originally to Adam Coddington, I
believe.
  • Loading branch information
ralphbean committed Jan 19, 2015
1 parent bbd7484 commit 058eed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taskw/warrior.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def _extract_annotations_from_task(self, task):
else:
annotations.append(v)

for key in task.keys():
for key in list(task.keys()):
if key.startswith('annotation_'):
annotations.append(task[key])
del(task[key])
Expand Down

0 comments on commit 058eed0

Please sign in to comment.