🐛 py3 list vs iterator
This commit is contained in:
1 parent
2d85d8acf8
commit
5015422086
1 file changed
+2
-2
@@ -126,8 +126,8 @@ class GroupManager(object):
|
||||
return [group.key for group in groups]
|
||||
|
||||
def _to_groups(self, *groups):
|
||||
return filter(lambda x: x is not None,
|
||||
[self._to_group(g) for g in groups])
|
||||
return list(filter(lambda x: x is not None,
|
||||
[self._to_group(g) for g in groups]))
|
||||
|
||||
def _to_group(self, group):
|
||||
# noinspection PyCompatibility
|
||||
|
||||
Reference in new issue
Block a user