Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Update scrapy/spiders/crawl.py

elacuestaee510cf0d6dd
diff --git a/scrapy/spiders/crawl.py b/scrapy/spiders/crawl.py
index 3d62224bf..cb021a5a7 100644
--- a/scrapy/spiders/crawl.py
+++ b/scrapy/spiders/crawl.py
@@ -55,8 +55,8 @@ class Rule:
self.process_request_argcount = len(get_func_args(self.process_request))
if self.process_request_argcount == 1:
warnings.warn(
- "Rule.process_request should accept two arguments"
- " (request, response), accepting only one is deprecated",
+ "Rule.process_request should accept two arguments "
+ "(request, response), accepting only one is deprecated",
category=ScrapyDeprecationWarning,
stacklevel=2,
)