NeighborList: Always cast items to list

This commit is contained in:
Florian Bruhin 2014-02-20 20:46:15 +01:00
parent 4f6e149289
commit e1fe6111ec

View File

@ -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)