Skip to content

Commit 6d193e4

Browse files
committed
Changed sel. to response. for clarity
Changed sel. to response. to comply with the rest of the examples in the same section, to avoid confusion.
1 parent a046ce8 commit 6d193e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/topics/selectors.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ It returns ``None`` if no element was found:
151151

152152
A default return value can be provided as an argument, to be used instead of ``None``:
153153

154-
>>> sel.xpath('//div[@id="not-exists"]/text()').extract_first(default='not-found')
154+
>>> response.xpath('//div[@id="not-exists"]/text()').extract_first(default='not-found')
155155
'not-found'
156156

157157
Notice that CSS selectors can select text or attribute nodes using CSS3

0 commit comments

Comments
 (0)