Improved the __repr__ and __str__ of Queues.

main
Vincent Driessen 13 years ago
parent b4c1c85276
commit 8852859fc4

@ -136,5 +136,8 @@ class Queue(object):
return hash(self.name) return hash(self.name)
def __repr__(self):
return 'Queue(%r)' % (self.name,)
def __str__(self): def __str__(self):
return self.name return '<Queue \'%s\'>' % (self.name,)

Loading…
Cancel
Save