Restore and deprecate utils.py36

This commit is contained in:
Andrey Rakhmatullin 2020-05-19 11:37:25 +05:00
parent 33279aea04
commit abc9aa8737
1 changed files with 13 additions and 0 deletions

13
scrapy/utils/py36.py Normal file
View File

@ -0,0 +1,13 @@
"""
collect_asyncgen was put here but later moved to utils.asyncgen.
"""
import warnings
from scrapy.exceptions import ScrapyDeprecationWarning
from scrapy.utils.asyncgen import collect_asyncgen # noqa: F401
warnings.warn("Module `scrapy.utils.py36` is deprecated. "
"Please import `collect_asyncgen` from `scrapy.utils.asyncgen` instead.",
ScrapyDeprecationWarning, stacklevel=2)