Fixes for Python 3.

main
Vincent Driessen 12 years ago
parent 49c7cf0af7
commit 536e8a89cf

@ -44,7 +44,7 @@ def state_symbol(state):
def show_queues(args): def show_queues(args):
if len(args.queues): if len(args.queues):
qs = map(Queue, args.queues) qs = list(map(Queue, args.queues))
else: else:
qs = Queue.all() qs = Queue.all()
@ -79,7 +79,7 @@ def show_queues(args):
def show_workers(args): def show_workers(args):
if len(args.queues): if len(args.queues):
qs = map(Queue, args.queues) qs = list(map(Queue, args.queues))
def any_matching_queue(worker): def any_matching_queue(worker):
def queue_matches(q): def queue_matches(q):

@ -77,7 +77,7 @@ def main():
cleanup_ghosts() cleanup_ghosts()
try: try:
queues = map(Queue, args.queues) queues = list(map(Queue, args.queues))
w = Worker(queues, name=args.name) w = Worker(queues, name=args.name)
# Should we configure Sentry? # Should we configure Sentry?

Loading…
Cancel
Save