sort spiders in "scrapy list" cmd. closes #736

This commit is contained in:
Daniel Graña 2014-06-03 15:36:58 -03:00
parent 1c9effd7b4
commit f6d48213f6
1 changed files with 1 additions and 1 deletions

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)