From e854d0d6ef0d7a27910bbc2d56462509cff50acc Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Fri, 11 Sep 2009 19:32:05 -0300 Subject: [PATCH] removed redundant --nopipelines function. same behaviour can be obtained by clearing the ITEM_PIPELINES setting --- scrapy/command/commands/crawl.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/scrapy/command/commands/crawl.py b/scrapy/command/commands/crawl.py index ac0a340b1..f63364ac9 100644 --- a/scrapy/command/commands/crawl.py +++ b/scrapy/command/commands/crawl.py @@ -19,8 +19,6 @@ class Command(ScrapyCommand): def add_options(self, parser): ScrapyCommand.add_options(self, parser) - parser.add_option("--nopipeline", dest="nopipeline", action="store_true", \ - help="disable scraped item pipeline") parser.add_option("-n", "--nofollow", dest="nofollow", action="store_true", \ help="don't follow links (for use with URLs only)") parser.add_option("-c", "--callback", dest="callback", action="store", \ @@ -28,9 +26,6 @@ class Command(ScrapyCommand): def process_options(self, args, opts): ScrapyCommand.process_options(self, args, opts) - if opts.nopipeline: - settings.overrides['ITEM_PIPELINES'] = [] - if opts.nofollow: settings.overrides['CRAWLSPIDER_FOLLOW_LINKS'] = False