diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-27 18:17:24 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-27 18:17:24 -0500 |
commit | 63dc8117e8f396b25688623c7f1920b4f0911373 (patch) | |
tree | 4f294dbc0d92a69ba018b3bbae8dfc778d7488b9 /bs4/builder/__init__.py | |
parent | 683e1a1371065c0c98c8cab6c296ecff6e5f8ea3 (diff) |
Got rid of __package__; hopefully this is the only thing holding up 2.5 support.
Diffstat (limited to 'bs4/builder/__init__.py')
-rw-r--r-- | bs4/builder/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |