summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2012-03-30 08:34:55 -0400
committerLeonard Richardson <leonard.richardson@canonical.com>2012-03-30 08:34:55 -0400
commit0d0771a3b98c3d157eac4bfc1c46a6598f871e27 (patch)
treed1c65f6ca257e119eb4974eb943811b551d6542a
parentb14a9cc5680fdce5530ae84b7ce3671f93c3e523 (diff)
Fixed a typo that caused some versions of Python 3 to convert the Beautiful Soup codebase incorrectly.
-rw-r--r--NEWS.txt5
-rw-r--r--bs4/builder/__init__.py2
2 files changed, 6 insertions, 1 deletions
diff --git a/NEWS.txt b/NEWS.txt
index 32df910..6ee67b4 100644
--- a/NEWS.txt
+++ b/NEWS.txt
@@ -1,3 +1,8 @@
+= 4.0.3 () =
+
+* Fixed a typo that caused some versions of Python 3 to convert the
+ Beautiful Soup codebase incorrectly.
+
= 4.0.2 (20120326) =
* Worked around a possible bug in lxml that prevents non-tiny XML
diff --git a/bs4/builder/__init__.py b/bs4/builder/__init__.py
index a38a98f..84b5289 100644
--- a/bs4/builder/__init__.py
+++ b/bs4/builder/__init__.py
@@ -276,7 +276,7 @@ def register_treebuilders_from(module):
# builder registrations will take precedence. In general, we want lxml
# to take precedence over html5lib, because it's faster. And we only
# want to use HTMLParser as a last result.
-from .import _htmlparser
+from . import _htmlparser
register_treebuilders_from(_htmlparser)
try:
from . import _html5lib