Skip to content

Commit

Permalink
Merge pull request #4635 from cool-RR/patch-1
Browse files Browse the repository at this point in the history
Use chain.from_iterable in python.py
  • Loading branch information
wRAR committed Jun 17, 2020
2 parents ec98dab + 214da8e commit 89e900e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scrapy/utils/python.py
Expand Up @@ -334,10 +334,10 @@ class MutableChain:
"""

def __init__(self, *args):
self.data = chain(*args)
self.data = chain.from_iterable(args)

def extend(self, *iterables):
self.data = chain(self.data, *iterables)
self.data = chain(self.data, chain.from_iterable(iterables))

def __iter__(self):
return self
Expand Down

0 comments on commit 89e900e

Please sign in to comment.