From 8b28d365b1cd01853512d465468f747c63fdcdd8 Mon Sep 17 00:00:00 2001 From: samus_ Date: Mon, 12 Jan 2009 22:43:10 +0000 Subject: [PATCH] removed extra return --HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40711 --- scrapy/trunk/scrapy/spider/models.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/scrapy/trunk/scrapy/spider/models.py b/scrapy/trunk/scrapy/spider/models.py index 8217e53d5..22e26d172 100644 --- a/scrapy/trunk/scrapy/spider/models.py +++ b/scrapy/trunk/scrapy/spider/models.py @@ -23,7 +23,7 @@ def _valid_download_delay(obj): class ISpider(Interface, IPlugin) : """Interface to be implemented by site-specific web spiders""" - + domain_name = Attribute( """The domain name of the site to be scraped.""") @@ -48,9 +48,9 @@ class ISpider(Interface, IPlugin) : class BaseSpider(object): """Base class for scrapy spiders. All spiders must inherit from this class. - + """ - + implements(ISpider) start_urls = [] @@ -86,10 +86,7 @@ class BaseSpider(object): """ if urls is None: urls = self.start_urls - requests = [Request(url, callback=self.parse, dont_filter=True) for url in urls] - return requests - - return [] + return [Request(url, callback=self.parse, dont_filter=True) for url in urls] def parse(self, response): """This is the default callback function used to parse the start