Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

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

Pablo Hoffmane96622166e1e
diff --git a/scrapy/link/__init__.py b/scrapy/link.py
similarity index 100%
rename from scrapy/link/__init__.py
rename to scrapy/link.py
diff --git a/scrapy/link/extractors.py b/scrapy/link/extractors.py
deleted file mode 100644
index 94546ba8c..000000000
--- a/scrapy/link/extractors.py
+++ /dev/null
@@ -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)
-