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

This commit is contained in:
Vincent Driessen 2015-01-21 16:12:08 -08:00 committed by Selwin Ong
parent 01ab2f20dd
commit dc5cd514ee
1 changed files with 2 additions and 2 deletions

View File

@ -169,11 +169,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):