mirror of https://github.com/scrapy/scrapy.git
Undeprecate download_delay. (#7117)
This commit is contained in:
parent
5afc9b0221
commit
9cce6c30db
|
|
@ -95,13 +95,6 @@ def _get_concurrency_delay(
|
|||
) -> tuple[int, float]:
|
||||
delay: float = settings.getfloat("DOWNLOAD_DELAY")
|
||||
if hasattr(spider, "download_delay"):
|
||||
warnings.warn(
|
||||
"The 'download_delay' spider attribute is deprecated. "
|
||||
"Use Spider.custom_settings or Spider.update_settings() instead. "
|
||||
"The corresponding setting name is 'DOWNLOAD_DELAY'.",
|
||||
category=ScrapyDeprecationWarning,
|
||||
stacklevel=2,
|
||||
)
|
||||
delay = spider.download_delay
|
||||
|
||||
if hasattr(spider, "max_concurrent_requests"):
|
||||
|
|
|
|||
Loading…
Reference in New Issue