Commit 7704cebf authored by Bram Schoenmakers's avatar Bram Schoenmakers

Return a set of projects/contexts.

parent 4daa59e3
......@@ -129,12 +129,12 @@ class TodoBase(object):
self.fields = TodoParser.parse_line(self.src)
def projects(self):
""" Returns a list of projects associated with this todo item. """
return self.fields['projects']
""" Returns a set of projects associated with this todo item. """
return set(self.fields['projects'])
def contexts(self):
""" Returns a list of contexts associated with this todo item. """
return self.fields['contexts']
""" Returns a set of contexts associated with this todo item. """
return set(self.fields['contexts'])
def is_completed(self):
""" Returns True iff this todo has been completed. """
......
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