Page MenuHomeSolus

Update python-beautifulsoup4 to 4.8.0
ClosedPublic

Authored by maverick1 on Jul 12 2019, 5:27 PM.
Tags
None
Referenced Files
F11052424: D6735.id16178.diff
Thu, Aug 10, 9:21 PM
F11052423: D6735.id.diff
Thu, Aug 10, 9:21 PM
F11052422: D6735.id16264.diff
Thu, Aug 10, 9:21 PM
F11052421: D6735.id16464.diff
Thu, Aug 10, 9:21 PM
F11052420: D6735.id16299.diff
Thu, Aug 10, 9:21 PM
F11037062: D6735.diff
Wed, Aug 9, 8:02 PM
F11019772: D6735.id16464.diff
Sun, Aug 6, 10:33 PM
F10979208: D6735.id16178.diff
Sat, Jul 22, 10:52 PM
Subscribers

Details

Summary

Update python-beautifulsoup4 to 4.8.0 Depends on D6736

Changes

  • You can customize the TreeBuilder object by passing keyword arguments into the BeautifulSoup constructor.
  • The role of Formatter objects has been greatly expanded
  • Added a new method to the API, Tag.smooth(), which consolidates multiple adjacent NavigableString elements.
  • Fixed an incorrectly raised exception when inserting a tag before or after an identical tag.
  • Beautiful Soup will no longer try to keep track of namespaces that are not defined with a prefix; this can confuse soupselect.
  • Tried even harder to avoid the deprecation warning originally fixed in 4.6.1.
  • Beautiful Soup's CSS Selector implementation has been replaced by a dependency on Isaac Muse's SoupSieve project.
  • Added the PageElement.extend() method, which works like list.append().
  • PageElement.insert_before() and insert_after() now take a variable number of arguments.
  • Fix a number of problems with the tree builder that caused trees that were superficially okay, but which fell apart when bits were extracted.
  • Fixed a problem with the tree builder in which elements that contained no content (such as empty comments and all-whitespace elements) were not being treated as part of the tree.
  • Fixed a problem with multi-valued attributes where the value contained whitespace

Detailed changelog available here

Test Plan

Ran an example code from the website.

Diff Detail

Repository
R2558 python-beautifulsoup4
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

JoshStrobl added a subscriber: JoshStrobl.
JoshStrobl added inline comments.
package.yml
29–35

Our local repo documentation on the Help Center exists for a reason. It should be used to validate soupsieve and this check step.

This revision now requires changes to proceed.Jul 18 2019, 7:20 PM
maverick1 retitled this revision from Update python-beautifulsoup4 to 4.7.1 to Update python-beautifulsoup4 to 4.8.0.Jul 24 2019, 3:59 PM
maverick1 edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Aug 4 2019, 4:36 PM
This revision was automatically updated to reflect the committed changes.