From e1fe6111ece87ceac9fc84f59dfa3475488b445b Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 20 Feb 2014 20:46:15 +0100 Subject: [PATCH] NeighborList: Always cast items to list --- qutebrowser/utils/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/utils/types.py b/qutebrowser/utils/types.py index 49c338050..92c054a58 100644 --- a/qutebrowser/utils/types.py +++ b/qutebrowser/utils/types.py @@ -54,7 +54,7 @@ class NeighborList: if items is None: self._items = [] else: - self._items = items + self._items = list(items) self._default = default if default is not _UNSET: self.idx = self._items.index(default)