Commit f69f42a0 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Make default implementation of print_list return a string

parent 3e9f8eef
......@@ -32,8 +32,12 @@ class Printer(object):
raise NotImplementedError
def print_list(self, p_todos):
result = ''
for todo in p_todos:
self.print_todo(todo)
result += self.print_todo(todo)
return result
def print_groups(self, p_groups):
todos = list(chain.from_iterable(p_groups.values()))
......
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