mirror of https://github.com/scrapy/scrapy.git
MutableChain: return self from __iter__
This commit is contained in:
parent
c911e80209
commit
a3a3107bc4
|
|
@ -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__
|
||||
|
|
|
|||
Loading…
Reference in New Issue