diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2011-03-06 19:41:48 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2011-03-06 19:41:48 -0500 |
commit | 85959841f88fb750b20bea48b4df904286e4fca6 (patch) | |
tree | e796cf9045d94be991f6611188c41607abf342a1 /CHANGELOG | |
parent | b01f9312a13198d249060dac34ab12629285cdb2 (diff) | |
parent | 32050a613a3eff5f53c6395ea365159226351946 (diff) |
A big patch from Aaron that brings in features from 3.0.8 and makes the code more PEP-8 compliant.
Diffstat (limited to 'CHANGELOG')
-rw-r--r-- | CHANGELOG | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -19,10 +19,11 @@ version of the API is in use, the module is now called 'bs4': == Better method names == -Methods have been renamed to comply with PEP 8. The old names still -work. Here are the renames: +Methods and attributes have been renamed to comply with PEP 8. The old names +still work. Here are the renames: * replaceWith -> replace_with + * replaceWithChildren -> replace_with_children * findAll -> find_all * findAllNext -> find_all_next * findAllPrevious -> find_all_previous @@ -34,6 +35,8 @@ work. Here are the renames: * findPrevious -> find_previous * findPreviousSibling -> find_previous_sibling * findPreviousSiblings -> find_previous_siblings + * nextSibling -> next_sibling + * previousSibling -> previous_sibling Some attributes have also been renamed: @@ -159,7 +162,7 @@ A later version of Beautiful Soup will allow you to plug in different parsers to make tradeoffs between speed and the ability to handle bad HTML. -3. In Python 3 (but not Python 2),HTMLParser converts entities within +3. In Python 3 (but not Python 2), HTMLParser converts entities within attributes to the corresponding Unicode characters. In Python 2 it's possible to parse this string and leave the é intact. |