diff options
-rw-r--r-- | CHANGELOG | 20 | ||||
-rw-r--r-- | beautifulsoup/element.py | 6 |
2 files changed, 12 insertions, 14 deletions
@@ -19,16 +19,16 @@ work. Here are the renames: == Generators are now properties == -The generators have been given more sensible names, and turned into -properties: - - * childGenerator -> children - * nextGenerator -> next_elements - * nextSiblingGenerator -> next_siblings - * previousGenerator -> previous_elements - * previousSiblingGenerator -> previous_siblings - * recursiveChildGenerator -> recursive_children - * parentGenerator -> parents +The generators have been given more sensible (and PEP 8-compliant) +names, and turned into properties: + + * childGenerator() -> children + * nextGenerator() -> next_elements + * nextSiblingGenerator() -> next_siblings + * previousGenerator() -> previous_elements + * previousSiblingGenerator() -> previous_siblings + * recursiveChildGenerator() -> recursive_children + * parentGenerator() -> parents So instead of this: diff --git a/beautifulsoup/element.py b/beautifulsoup/element.py index 726f2e2..39e0e06 100644 --- a/beautifulsoup/element.py +++ b/beautifulsoup/element.py @@ -722,10 +722,8 @@ class Tag(PageElement, Entities): if not recursive: generator = self.children return self._find_all(name, attrs, text, limit, generator, **kwargs) - - # Old names for backwards compatibility. - find_all = find_all - findChildren = find_all + findAll = find_all # BS3 + findChildren = find_all # BS2 #Private methods |