Removed deprecated setting: CLOSESPIDER_ITEMPASSED

This commit is contained in:
Pablo Hoffman 2012-03-01 09:46:14 -02:00
parent 8b83177655
commit 9a508d4638
1 changed files with 0 additions and 4 deletions

View File

@ -21,10 +21,6 @@ class CloseSpider(object):
self.crawler = crawler
self.timeout = settings.getint('CLOSESPIDER_TIMEOUT')
self.itemcount = settings.getint('CLOSESPIDER_ITEMCOUNT')
# XXX: legacy support - remove for future releases
if settings.getint('CLOSESPIDER_ITEMPASSED'):
warnings.warn("CLOSESPIDER_ITEMPASSED setting is deprecated, use CLOSESPIDER_ITEMCOUNT instead", ScrapyDeprecationWarning)
self.pagecount = settings.getint('CLOSESPIDER_ITEMPASSED')
self.pagecount = settings.getint('CLOSESPIDER_PAGECOUNT')
self.errorcount = settings.getint('CLOSESPIDER_ERRORCOUNT')