Scrapy, a fast high-level web crawling & scraping framework for Python.
Style adjustment
Eugenio Lacuesta0fb7bcb2cf16
diff --git a/scrapy/http/response/__init__.py b/scrapy/http/response/__init__.pyindex f4ef79c72..185a9bb67 100644--- a/scrapy/http/response/__init__.py+++ b/scrapy/http/response/__init__.py@@ -100,8 +100,9 @@ class Response(object_ref):"""Create a new Response with the same attributes except for thosegiven new values."""- for x in ['url', 'status', 'headers', 'body',- 'request', 'flags', 'certificate', 'ip_address', 'protocol']:+ for x in [+ "url", "status", "headers", "body", "request", "flags", "certificate", "ip_address", "protocol",+ ]:kwargs.setdefault(x, getattr(self, x))cls = kwargs.pop('cls', self.__class__)return cls(*args, **kwargs)