pretty print

This commit is contained in:
Darren Ranalli 2004-12-07 04:23:38 +00:00
parent 9a3c2e76a1
commit 5f63bf1d22

View File

@ -47,4 +47,10 @@ class BulletinBoard:
self.remove(postName)
def __repr__(self):
return str(self._dict)
str = 'Bulletin Board Contents\n'
str += '======================='
keys = self._dict.keys()
keys.sort()
for postName in keys:
str += '\n%s: %s' % (postName, self._dict[postName])
return str