From 681c2985bc13e181fdbe09ed6f88a5d645d32358 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gra=C3=B1a?= Date: Mon, 14 Apr 2014 19:46:58 -0400 Subject: [PATCH] remove .re() shortcut --- scrapy/http/response/text.py | 3 --- scrapy/tests/test_http_response.py | 4 ---- 2 files changed, 7 deletions(-) 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 (.*)"), - response.selector.re("Some (.*)"), - ) class HtmlResponseTest(TextResponseTest):