diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-18 07:25:01 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-18 07:25:01 -0500 |
commit | d35b41180014d950c7ca17fc30bfc59a0df50103 (patch) | |
tree | 5caaf90269cf3d3d8b20467a48d0d04593237d7f /beautifulsoup/element.py | |
parent | 02f2da4a27b3bae40a414ce753cc9b4901796161 (diff) |
Renamed findAllNext to find_all_next.
Diffstat (limited to 'beautifulsoup/element.py')
-rw-r--r-- | beautifulsoup/element.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/beautifulsoup/element.py b/beautifulsoup/element.py index 768618e..082c71b 100644 --- a/beautifulsoup/element.py +++ b/beautifulsoup/element.py @@ -164,15 +164,16 @@ class PageElement: def find_next(self, name=None, attrs={}, text=None, **kwargs): """Returns the first item that matches the given criteria and appears after this Tag in the document.""" - return self._findOne(self.find_allNext, name, attrs, text, **kwargs) + return self._findOne(self.find_all_next, name, attrs, text, **kwargs) findNext = find_next # Compatibility with BS3. - def find_allNext(self, name=None, attrs={}, text=None, limit=None, + def find_all_next(self, name=None, attrs={}, text=None, limit=None, **kwargs): """Returns all items that match the given criteria and appear after this Tag in the document.""" return self._find_all(name, attrs, text, limit, self.next_elements, **kwargs) + findAllNext = find_all_next # Compatibility with BS3. def find_nextSibling(self, name=None, attrs={}, text=None, **kwargs): """Returns the closest sibling to this Tag that matches the |