From 8852859fc4c9ef119d86bbd2c1f0660e9a1a9b05 Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Wed, 16 Nov 2011 12:45:59 +0100 Subject: [PATCH] Improved the __repr__ and __str__ of Queues. --- rq/queue.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rq/queue.py b/rq/queue.py index f43bdd0..256b8e9 100644 --- a/rq/queue.py +++ b/rq/queue.py @@ -136,5 +136,8 @@ class Queue(object): return hash(self.name) + def __repr__(self): + return 'Queue(%r)' % (self.name,) + def __str__(self): - return self.name + return '' % (self.name,)