1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-24 09:04:16 +00:00

Merge pull request #742 from dangra/sort-scrapy-list

sort spiders in "scrapy list" cmd.
This commit is contained in:
Pablo Hoffman 2014-06-03 17:34:04 -03:00
commit 9a4ee20991

View File

@ -11,5 +11,5 @@ class Command(ScrapyCommand):
def run(self, args, opts):
crawler = self.crawler_process.create_crawler()
for s in crawler.spiders.list():
for s in sorted(crawler.spiders.list()):
print(s)