mirror of https://github.com/scrapy/scrapy.git
Restore and deprecate utils.py36
This commit is contained in:
parent
33279aea04
commit
abc9aa8737
|
|
@ -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)
|
||||
Loading…
Reference in New Issue