From c642df93b9a9c684b2c3a5edb74b3818a76ce8d2 Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Sun, 1 Apr 2012 08:48:45 +0200 Subject: [PATCH] Don't use dict comprehension. It's Python 2.7 only. This fixes #51. --- bin/rqinfo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/rqinfo b/bin/rqinfo index cc3905b..851b4ec 100755 --- a/bin/rqinfo +++ b/bin/rqinfo @@ -101,7 +101,7 @@ def show_workers(args): print 'worker %s %s %s' % (w.name, w.state, ','.join(worker_queues)) else: # Create reverse lookup table - queues = {q: [] for q in qs} + queues = dict([(q, []) for q in qs]) for w in ws: for q in w.queues: if not q in queues: