Skip to content

Commit

Permalink
Don't use dict comprehension. It's Python 2.7 only.
Browse files Browse the repository at this point in the history
This fixes rq#51.
  • Loading branch information
nvie committed Apr 1, 2012
1 parent 100d23b commit c642df9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/rqinfo
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c642df9

Please sign in to comment.