Create a set from the minion list

This commit is contained in:
Steve Hajducko 2016-09-16 19:06:26 -07:00
parent 7fb1dba182
commit 67521917c4

View File

@ -652,6 +652,8 @@ class CkMinions(object):
v_minions = self._expand_matching(valid)
if minions is None:
minions = set(self.check_minions(expr, expr_form))
else:
minions = set(minions)
d_bool = not bool(minions.difference(v_minions))
if len(v_minions) == len(minions) and d_bool:
return True