MutableChain: return self from __iter__

This commit is contained in:
Adrián Chaves 2019-11-13 09:46:54 +01:00
parent c911e80209
commit a3a3107bc4
1 changed files with 1 additions and 3 deletions

View File

@ -388,9 +388,7 @@ class MutableChain(object):
self.data = chain(self.data, *iterables)
def __iter__(self):
return self.data.__iter__()
return self
def __next__(self):
return next(self.data)
next = __next__