Commit aa3e8351 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Rename print method.

parent f8415113
......@@ -159,6 +159,6 @@ class TodoBase(object):
self.src = re.sub(r'^(\([A-Z]\) )?', \
'x ' + today.isoformat() + ' ', self.src)
def __print__(self):
def __str__(self):
""" A printer for the todo item. """
print self.source() + "\n"
......@@ -93,7 +93,7 @@ class TodoList(object):
"""
return p_filter.filter(p_sorter.sort(self._todos))
def __print__(self):
def __str__(self):
result = ""
for todo in self._todos:
result = "%s" % todo
......
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