summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS.txt6
-rw-r--r--bs4/__init__.py4
2 files changed, 5 insertions, 5 deletions
diff --git a/NEWS.txt b/NEWS.txt
index 25795ce..055cc6a 100644
--- a/NEWS.txt
+++ b/NEWS.txt
@@ -3,9 +3,9 @@
* Beautiful Soup will now work with versions of html5lib greater than
0.99999999. [bug=1603299]
-* Fixed a bug in the html5lib treebuilder that deranged the tree
- when a whitespace element was reparented into a tag that contained
- an identical whitespace element. [bug=1505351]
+* Fixed a bug that deranged the tree when a whitespace element was
+ reparented into a tag that contained an identical whitespace
+ element. [bug=1505351]
* Corrected handling of XML processing instructions. [bug=1504393]
diff --git a/bs4/__init__.py b/bs4/__init__.py
index 003dccb..d865bb9 100644
--- a/bs4/__init__.py
+++ b/bs4/__init__.py
@@ -383,8 +383,8 @@ class BeautifulSoup(Tag):
index -= 1
else:
raise ValueError(
- "Error in html5lib tree builder: supposedly %r was "
- "inserted into %r, but I don't see it!" % (
+ "Error building tree: supposedly %r was inserted "
+ "into %r after the fact, but I don't see it!" % (
o, parent
)
)