diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-27 18:20:16 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-27 18:20:16 -0500 |
commit | a67123736b38d6f1d921fbdd71eb0b780567fe5e (patch) | |
tree | 4f294dbc0d92a69ba018b3bbae8dfc778d7488b9 | |
parent | d9e7f8b0ec4d4c46fa2fa7f8eee59437e8fa46b8 (diff) | |
parent | 63dc8117e8f396b25688623c7f1920b4f0911373 (diff) |
Restored Python 2.5 support.
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | bs4/builder/__init__.py | 2 |
2 files changed, 1 insertions, 3 deletions
@@ -1,5 +1,3 @@ -Doesn't work with Python 2.5, which doesn't have __package__. - Bare ampersands should be converted to HTML entities upon output. Add namespace support. diff --git a/bs4/builder/__init__.py b/bs4/builder/__init__.py index 17dcff3..afd49b9 100644 --- a/bs4/builder/__init__.py +++ b/bs4/builder/__init__.py @@ -233,7 +233,7 @@ class HTMLTreeBuilder(TreeBuilder): def register_treebuilders_from(module): """Copy TreeBuilders from the given module into this module.""" # I'm fairly sure this is not the best way to do this. - this_module = sys.modules[__package__] + this_module = sys.modules['bs4.builder'] for name in module.__all__: obj = getattr(module, name) |