Scrapy, a fast high-level web crawling & scraping framework for Python.
added deprecation messages to queue and runserver commands
Pablo Hoffman6f2cea4775f4
diff --git a/scrapy/commands/queue.py b/scrapy/commands/queue.pyindex dbede1414..63cf3b5c8 100644--- a/scrapy/commands/queue.py+++ b/scrapy/commands/queue.py@@ -33,6 +33,10 @@ class Command(runserver.Command):raise UsageError()cmd = args[0]+ import warnings+ warnings.warn("Scrapy queue command is deprecated - use Scrapyd instead.", \+ DeprecationWarning)+q = self.crawler.queue._queueif cmd == 'add' and len(args) < 2:diff --git a/scrapy/commands/runserver.py b/scrapy/commands/runserver.pyindex c40133418..9d7fd0615 100644--- a/scrapy/commands/runserver.py+++ b/scrapy/commands/runserver.py@@ -10,4 +10,7 @@ class Command(ScrapyCommand):return "Deprecated command. Use 'server' command instead"def run(self, args, opts):+ import warnings+ warnings.warn("Scrapy queue command is deprecated - use 'server' command instead.", \+ DeprecationWarning)self.crawler.start()