mirror of https://github.com/scrapy/scrapy.git
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:
parent
c0532712f9
commit
e96622166e
|
|
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue