diff options
-rw-r--r-- | NEWS.txt | 5 | ||||
-rw-r--r-- | bs4/builder/__init__.py | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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 |