Don't use dict comprehension. It's Python 2.7 only.

This fixes #51.
main
Vincent Driessen 13 years ago
parent 100d23b72e
commit c642df93b9

@ -101,7 +101,7 @@ def show_workers(args):
print 'worker %s %s %s' % (w.name, w.state, ','.join(worker_queues)) print 'worker %s %s %s' % (w.name, w.state, ','.join(worker_queues))
else: else:
# Create reverse lookup table # Create reverse lookup table
queues = {q: [] for q in qs} queues = dict([(q, []) for q in qs])
for w in ws: for w in ws:
for q in w.queues: for q in w.queues:
if not q in queues: if not q in queues:

Loading…
Cancel
Save