Scrapy, a fast high-level web crawling & scraping framework for Python.
Add deprecation warning for ChunkedTransfer middleware
Paul Tremberthe6f174b01535
diff --git a/scrapy/downloadermiddlewares/chunked.py b/scrapy/downloadermiddlewares/chunked.pyindex 57e97e4d2..fd90aab2a 100644--- a/scrapy/downloadermiddlewares/chunked.py+++ b/scrapy/downloadermiddlewares/chunked.py@@ -1,6 +1,14 @@+import warnings++from scrapy.exceptions import ScrapyDeprecationWarningfrom scrapy.utils.http import decode_chunked_transfer+warnings.warn("Module `scrapy.downloadermiddlewares.chunked.ChunkedTransferMiddleware` "+ "is deprecated, chunked transfers are supported by default.",+ ScrapyDeprecationWarning, stacklevel=2)++class ChunkedTransferMiddleware(object):"""This middleware adds support for chunked transfer encoding, asdocumented in: http://en.wikipedia.org/wiki/Chunked_transfer_encoding