mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add import statement to docs
This commit is contained in:
parent
6758fba212
commit
21f5455c05
@ -86,7 +86,8 @@ class Select(object):
|
|||||||
This class implements CSS Level 3 selectors on an lxml tree, with caching
|
This class implements CSS Level 3 selectors on an lxml tree, with caching
|
||||||
for performance. To use:
|
for performance. To use:
|
||||||
|
|
||||||
>>> select = Select(root)
|
>>> from css_selectors import Select
|
||||||
|
>>> select = Select(root) # Where root is an lxml document
|
||||||
>>> print(tuple(select('p.myclass')))
|
>>> print(tuple(select('p.myclass')))
|
||||||
|
|
||||||
Tags are returned in document order. Note that attribute and tag names are
|
Tags are returned in document order. Note that attribute and tag names are
|
||||||
|
Loading…
x
Reference in New Issue
Block a user