Skip to content

Commit

Permalink
replace list by generator also in start_requests method of Sitemap
Browse files Browse the repository at this point in the history
spider
  • Loading branch information
kalessin committed Mar 5, 2012
1 parent cc7fc33 commit f6179a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scrapy/contrib/spiders/sitemap.py
Expand Up @@ -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'):
Expand Down

0 comments on commit f6179a9

Please sign in to comment.