1
0
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:
Mateusz Golewski 2014-01-30 21:48:50 +01:00 committed by Julia Medina
parent 6c7bd54fc3
commit bd126be356

View File

@ -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):