Merge pull request #1626 from TehomCD/fix_saverlist_add

Fix __add__ in SaverList
This commit is contained in:
Griatch 2018-06-12 19:00:40 +02:00 committed by GitHub
commit e033e1713d

View file

@ -237,10 +237,13 @@ class _SaverList(_SaverMutable, MutableSequence):
self._data = list()
@_save
def __add__(self, otherlist):
def __iadd__(self, otherlist):
self._data = self._data.__add__(otherlist)
return self._data
def __add__(self, otherlist):
return list(self._data) + otherlist
@_save
def insert(self, index, value):
self._data.insert(index, self._convert_mutables(value))