diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2012-02-01 11:21:08 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2012-02-01 11:21:08 -0500 |
commit | 342fbb95061e21cfda550f41b4faef7e3d569077 (patch) | |
tree | 2070c3d4e8e61baa890b7e81d0ab187d268c6646 /bs4/element.py | |
parent | 50f872c78f8b894996f81176d5e03f4a6bbe8efd (diff) |
Committed minor changes made while writing docs.
Diffstat (limited to 'bs4/element.py')
-rw-r--r-- | bs4/element.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bs4/element.py b/bs4/element.py index 5db5b36..0ba2bdc 100644 --- a/bs4/element.py +++ b/bs4/element.py @@ -271,11 +271,11 @@ class PageElement(object): if isinstance(name, SoupStrainer): strainer = name elif text is None and not limit and not attrs and not kwargs: - # findAll*(True) + # Optimization to find all tags. if name is True or name is None: return [element for element in generator if isinstance(element, Tag)] - # findAll*('tag-name') + # Optimization to find all tags with a given name. elif isinstance(name, basestring): return [element for element in generator if isinstance(element, Tag) and element.name == name] |