mirror of https://github.com/scrapy/scrapy.git
Restored scrapy.utils.py26 module for backwards compatibility, with a deprecation message. This is needed because the module was used a lot by users and the change causes too much trouble
This commit is contained in:
parent
cc6e297062
commit
45685ea6cd
|
|
@ -0,0 +1,10 @@
|
|||
import json
|
||||
from shutil import copytree, ignore_patterns
|
||||
from multiprocessing import cpu_count
|
||||
from pkgutil import get_data
|
||||
|
||||
from scrapy.exceptions import ScrapyDeprecationWarning
|
||||
|
||||
import warnings
|
||||
warnings.warn("Module `scrapy.utils.py26` is deprecated and will be removed in Scrapy 0.17",
|
||||
ScrapyDeprecationWarning, stacklevel=2)
|
||||
Loading…
Reference in New Issue