From ee46ec892061f01656e294441b2836a2f5b722c8 Mon Sep 17 00:00:00 2001 From: Mikhail Korobov Date: Fri, 20 Dec 2013 19:08:49 +0600 Subject: [PATCH] kill AjaxCrawlableMiddlewar.enabled_setting --- scrapy/contrib/downloadermiddleware/ajaxcrawlable.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scrapy/contrib/downloadermiddleware/ajaxcrawlable.py b/scrapy/contrib/downloadermiddleware/ajaxcrawlable.py index 2bd5de59e..c76d1de68 100644 --- a/scrapy/contrib/downloadermiddleware/ajaxcrawlable.py +++ b/scrapy/contrib/downloadermiddleware/ajaxcrawlable.py @@ -13,10 +13,8 @@ class AjaxCrawlableMiddleware(object): For more info see https://developers.google.com/webmasters/ajax-crawling/docs/getting-started. """ - enabled_setting = 'AJAXCRAWLABLE_ENABLED' - def __init__(self, settings): - if not settings.getbool(self.enabled_setting): + if not settings.getbool('AJAXCRAWLABLE_ENABLED'): raise NotConfigured # XXX: Google parses at least first 100k bytes; scrapy's redirect