🐛 py3 list vs iterator

This commit is contained in:
Gina Häußge committed 2020-02-25 15:48:01 +01:00
1 parent 2d85d8acf8
commit 5015422086
1 file changed
+2 -2
+2 -2
View File
@@ -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