Explicitly cast map() result to a list, for Python 3 compat.

main
Vincent Driessen 10 years ago
parent eae2c40ea0
commit 543bcbc60b

@ -166,11 +166,11 @@ class Worker(object):
def queue_names(self):
"""Returns the queue names of this worker's queues."""
return map(lambda q: q.name, self.queues)
return list(map(lambda q: q.name, self.queues))
def queue_keys(self):
"""Returns the Redis keys representing this worker's queues."""
return map(lambda q: q.key, self.queues)
return list(map(lambda q: q.key, self.queues))
@property
def name(self):

Loading…
Cancel
Save