Permalink
Browse files

replace list by generator also in start_requests method of Sitemap

spider
  • Loading branch information...
1 parent cc7fc33 commit f6179a927e553ca362365e23ed8b8878f773ba32 @kalessin kalessin committed Mar 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 scrapy/contrib/spiders/sitemap.py
@@ -22,7 +22,7 @@ def __init__(self, *a, **kw):
self._follow = [regex(x) for x in self.sitemap_follow]
def start_requests(self):
- return [Request(x, callback=self._parse_sitemap) for x in self.sitemap_urls]
+ return (Request(x, callback=self._parse_sitemap) for x in self.sitemap_urls)
def _parse_sitemap(self, response):
if response.url.endswith('/robots.txt'):

0 comments on commit f6179a9

Please sign in to comment.