From 45685ea6cdc1860a5a0bf901cd989bd52bd8ac4c Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Mon, 5 Mar 2012 17:15:49 -0200 Subject: [PATCH] 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 --- scrapy/utils/py26.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 scrapy/utils/py26.py diff --git a/scrapy/utils/py26.py b/scrapy/utils/py26.py new file mode 100644 index 000000000..1db548d8e --- /dev/null +++ b/scrapy/utils/py26.py @@ -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)