Commit b688f744 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Add another convenience method to easily compare lists.

parent bae4fa88
......@@ -8,3 +8,6 @@ def load_file(p_filename):
todofile = TodoFile.TodoFile(p_filename)
return [Todo.Todo(src) for src in todofile.read()]
def todolist_to_string(p_list):
""" Converts a todo list to a single string. """
return '\n'.join([str(t) for t in p_list])
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