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:
Pablo Hoffman 2012-03-05 17:15:49 -02:00
parent cc6e297062
commit 45685ea6cd
1 changed files with 10 additions and 0 deletions

10
scrapy/utils/py26.py Normal file
View File

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