Skip to content

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

remove .re() shortcut

Daniel Graña681c2985bc13
diff --git a/scrapy/http/response/text.py b/scrapy/http/response/text.py
index 854a07f97..14030d8e5 100644
--- a/scrapy/http/response/text.py
+++ b/scrapy/http/response/text.py
@@ -102,6 +102,3 @@ class TextResponse(Response):
def css(self, query):
return self.selector.css(query)
-
- def re(self, regex):
- return self.selector.re(regex)
diff --git a/scrapy/tests/test_http_response.py b/scrapy/tests/test_http_response.py
index 6de083cd6..26a628182 100644
--- a/scrapy/tests/test_http_response.py
+++ b/scrapy/tests/test_http_response.py
@@ -294,10 +294,6 @@ class TextResponseTest(BaseResponseTest):
response.css("title::text").extract(),
response.selector.css("title::text").extract(),
)
- self.assertEqual(
- response.re("Some (.*)</title>"),
- response.selector.re("Some (.*)</title>"),
- )
class HtmlResponseTest(TextResponseTest):