Undeprecate download_delay. (#7117)

This commit is contained in:
Andrey Rakhmatullin 2025-10-24 17:44:43 +05:00 committed by GitHub
parent 5afc9b0221
commit 9cce6c30db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 7 deletions

View File

@ -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"):