diff --git a/scrapy/utils/py36.py b/scrapy/utils/py36.py new file mode 100644 index 000000000..db33a361d --- /dev/null +++ b/scrapy/utils/py36.py @@ -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)