Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

removed deprecation warning for spider.download_timeout attribute

Pablo Hoffmanc085f816412a
diff --git a/scrapy/contrib/downloadermiddleware/downloadtimeout.py b/scrapy/contrib/downloadermiddleware/downloadtimeout.py
index 01ccf7bfb..fe3754c61 100644
--- a/scrapy/contrib/downloadermiddleware/downloadtimeout.py
+++ b/scrapy/contrib/downloadermiddleware/downloadtimeout.py
@@ -4,7 +4,6 @@ Download timeout middleware
See documentation in docs/topics/downloader-middleware.rst
"""
from scrapy.utils.python import WeakKeyCache
-from scrapy.utils import deprecate
class DownloadTimeoutMiddleware(object):
@@ -14,7 +13,6 @@ class DownloadTimeoutMiddleware(object):
def _download_timeout(self, spider):
if hasattr(spider, 'download_timeout'):
- deprecate.attribute(spider, 'download_timeout', 'DOWNLOAD_TIMEOUT')
return spider.download_timeout
return spider.settings.getint('DOWNLOAD_TIMEOUT')