mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-25 23:23:43 +00:00
Optimize extract_first()
This commit is contained in:
parent
6c7bd54fc3
commit
bd126be356
@ -179,8 +179,8 @@ class SelectorList(list):
|
||||
return [x.extract() for x in self]
|
||||
|
||||
def extract_first(self):
|
||||
for x in self.extract():
|
||||
return x
|
||||
for x in self:
|
||||
return x.extract()
|
||||
|
||||
@deprecated(use_instead='.extract()')
|
||||
def extract_unquoted(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user