removed backwards compatibility support for importing link extractors from scrapy.link.extractors

--HG--
rename : scrapy/link/__init__.py => scrapy/link.py
This commit is contained in:
Pablo Hoffman 2009-08-10 21:02:46 -03:00
parent c0532712f9
commit e96622166e
2 changed files with 0 additions and 14 deletions

View File

@ -1,14 +0,0 @@
# FIXME: code below is for backwards compatibility and should be removed before
# the 0.7 release
import warnings
from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor
class RegexLinkExtractor(SgmlLinkExtractor):
def __init__(self, *args, **kwargs):
warnings.warn("scrapy.link.extractors.RegexLinkExtractor is deprecated, use scrapy.contrib.linkextractors.sgml.SgmlLinkExtractor instead",
DeprecationWarning, stacklevel=2)
SgmlLinkExtractor.__init__(self, *args, **kwargs)