From 5015422086b8dbeada8cfcb93e5fc813b5404f9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 25 Feb 2020 15:48:01 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20py3=20list=20vs=20iterator?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/octoprint/access/groups.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/octoprint/access/groups.py b/src/octoprint/access/groups.py index 8108b28ce..b7d425795 100644 --- a/src/octoprint/access/groups.py +++ b/src/octoprint/access/groups.py @@ -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