From a05eaeed73a469493e78b5a1c5f0b4de2adf41c2 Mon Sep 17 00:00:00 2001 From: Eugenio Lacuesta Date: Thu, 11 Oct 2018 11:31:51 -0300 Subject: [PATCH] Simplify MutableChain --- scrapy/utils/python.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scrapy/utils/python.py b/scrapy/utils/python.py index 7971b4dde..1a6bab990 100644 --- a/scrapy/utils/python.py +++ b/scrapy/utils/python.py @@ -403,8 +403,7 @@ class MutableChain(object): def __iter__(self): return self.data.__iter__() - def __next__(self): # py3 - return self.data.__next__() + def __next__(self): + return next(self.data) - def next(self): # py2 - return self.data.next() + next = __next__