Skip to content

Commit

Permalink
docs:delete redundant code in has-class usage example. (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
chengxilo authored Oct 16, 2024
1 parent 7407342 commit 044d9c2
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -609,13 +609,6 @@ returns ``True`` for nodes that have all of the specified HTML classes::
... <p>Fourth</p>
... """)
...
>>> sel = Selector("""
... <p class="foo bar-baz">First</p>
... <p class="foo">Second</p>
... <p class="bar">Third</p>
... <p>Fourth</p>
... """)
...
>>> sel.xpath('//p[has-class("foo")]')
[<Selector query='//p[has-class("foo")]' data='<p class="foo bar-baz">First</p>'>,
<Selector query='//p[has-class("foo")]' data='<p class="foo">Second</p>'>]
Expand Down

0 comments on commit 044d9c2

Please sign in to comment.