mirror of https://github.com/scrapy/scrapy.git
remove .re() shortcut
This commit is contained in:
parent
134bd8a9e0
commit
681c2985bc
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue