From 26b4be78e30c65f2cb78fdc0e088cc26b90fbfe6 Mon Sep 17 00:00:00 2001 From: elpolilla Date: Wed, 26 Nov 2008 13:12:20 +0000 Subject: [PATCH] Minor correction in docstring --HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40430 --- scrapy/trunk/scrapy/contrib/spiders2/crawl.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scrapy/trunk/scrapy/contrib/spiders2/crawl.py b/scrapy/trunk/scrapy/contrib/spiders2/crawl.py index c56a740f2..03dccbdf3 100644 --- a/scrapy/trunk/scrapy/contrib/spiders2/crawl.py +++ b/scrapy/trunk/scrapy/contrib/spiders2/crawl.py @@ -57,8 +57,6 @@ class CrawlSpider(BaseSpider): return method super(CrawlSpider, self).__init__() - if not hasattr(self, 'rules'): - return for rule in self.rules: rule.callback = _get_method(rule.callback) rule.link_filter = _get_method(rule.link_filter) @@ -106,9 +104,8 @@ class CrawlSpider(BaseSpider): def _parse_wrapper(self, response, callback, cb_kwargs, follow): """ - This is were any response (except the ones from the start urls) arrives, and - were it's decided whether to extract links or not from it, and if it will - be parsed or not. + This is were any response arrives, and were it's decided whether + to extract links or not from it, and if it will be parsed or not. It returns a list of requests/items. """ res = []