1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-26 00:24:18 +00:00

Merge pull request #895 from scrapy/we-are-past-0.15

[MRG] drop support for CONCURRENT_REQUESTS_PER_SPIDER
This commit is contained in:
Pablo Hoffman 2014-10-03 17:14:00 -03:00
commit 9af61d5df6

View File

@ -49,14 +49,6 @@ def _get_concurrency_delay(concurrency, spider, settings):
if hasattr(spider, 'download_delay'):
delay = spider.download_delay
# TODO: remove for Scrapy 0.15
c = settings.getint('CONCURRENT_REQUESTS_PER_SPIDER')
if c:
warnings.warn("CONCURRENT_REQUESTS_PER_SPIDER setting is deprecated, "
"use CONCURRENT_REQUESTS_PER_DOMAIN instead", ScrapyDeprecationWarning)
concurrency = c
# ----------------------------
if hasattr(spider, 'max_concurrent_requests'):
concurrency = spider.max_concurrent_requests