forked from p15670423/monkey
BB: Pass generator instead of list comprehension to all()
This will allow a short-circuit.
This commit is contained in:
parent
b713cce893
commit
6ae7676322
|
@ -172,4 +172,4 @@ class MonkeyIslandClient(object):
|
|||
|
||||
def is_all_monkeys_dead(self):
|
||||
agents = self.get_agents()
|
||||
return all([a.stop_time is not None for a in agents])
|
||||
return all((a.stop_time is not None for a in agents))
|
||||
|
|
Loading…
Reference in New Issue