Print PriorityTasks contents

This commit is contained in:
Thomas Nagy 2018-11-27 07:42:34 +01:00
parent d7e701e4eb
commit 7d3c89e1b0
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA
1 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,8 @@ class PriorityTasks(object):
return len(self.lst)
def __iter__(self):
return iter(self.lst)
def __str__(self):
return 'PriorityTasks: [%s]' % '\n '.join(str(x) for x in self.lst)
def clear(self):
self.lst = []
def append(self, task):