Scrapy, a fast high-level web crawling & scraping framework for Python.
Fix `scrapy shell`.
Andrey Rakhmatullin0630e4aaa10c
diff --git a/scrapy/crawler.py b/scrapy/crawler.pyindex 15aec2757..6f54e62e9 100644--- a/scrapy/crawler.py+++ b/scrapy/crawler.py@@ -404,8 +404,8 @@ class CrawlerProcess(CrawlerRunner)::param bool stop_after_crawl: stop or not the reactor when allcrawlers have finished- :param bool install_signal_handlers: whether to install the shutdown- handlers (default: True)+ :param bool install_signal_handlers: whether to install the OS signal+ handlers from Twisted and Scrapy (default: True)"""from twisted.internet import reactor@@ -426,7 +426,7 @@ class CrawlerProcess(CrawlerRunner):reactor.addSystemEventTrigger("after", "startup", install_shutdown_handlers, self._signal_shutdown)- reactor.run() # blocking call+ reactor.run(installSignalHandlers=install_signal_handlers) # blocking calldef _graceful_stop_reactor(self) -> Deferred:d = self.stop()