diff options
author | Leonard Richardson <leonardr@segfault.org> | 2015-06-28 07:42:38 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2015-06-28 07:42:38 -0400 |
commit | 7d21694874e51a45a3ca03db1ad7c299e36834a7 (patch) | |
tree | 039896243b924efe4e26437824a97397348fe4d3 /doc/source | |
parent | 27648c0d8ba6bd837332ef2e673664797194d101 (diff) |
Raise a NotImplementedError whenever an unsupported CSS pseudoclass
is used in select(). Previously some cases did not result in a
NotImplementedError.
Diffstat (limited to 'doc/source')
-rw-r--r-- | doc/source/index.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/source/index.rst b/doc/source/index.rst index ee68d99..f6d3e38 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -1138,8 +1138,9 @@ whose ``href`` attribute _does not_ match a regular expression:: # [<a class="sister" href="http://example.com/elsie" id="link1">Elsie</a>, # <a class="sister" href="http://example.com/tillie" id="link3">Tillie</a>] -Here's a function that returns ``True`` if a tag is surrounded by -string objects:: +The function can be as complicated as you need it to be. Here's a +function that returns ``True`` if a tag is surrounded by string +objects:: from bs4 import NavigableString def surrounded_by_strings(tag): |