mirror of https://github.com/scrapy/scrapy.git
Update scrapy/spiders/crawl.py
Co-Authored-By: Adrián Chaves <adrian@chaves.io>
This commit is contained in:
parent
4663f0b9df
commit
ee510cf0d6
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue