summaryrefslogtreecommitdiff
path: root/beautifulsoup/builder
diff options
context:
space:
mode:
Diffstat (limited to 'beautifulsoup/builder')
-rw-r--r--beautifulsoup/builder/__init__.py4
-rw-r--r--beautifulsoup/builder/_html5lib.py (renamed from beautifulsoup/builder/html5lib_builder.py)6
-rw-r--r--beautifulsoup/builder/_lxml.py (renamed from beautifulsoup/builder/lxml_builder.py)5
3 files changed, 13 insertions, 2 deletions
diff --git a/beautifulsoup/builder/__init__.py b/beautifulsoup/builder/__init__.py
index 9ffa9ef..d6c750c 100644
--- a/beautifulsoup/builder/__init__.py
+++ b/beautifulsoup/builder/__init__.py
@@ -7,7 +7,6 @@ __all__ = [
'TreeBuilder',
]
-
class TreeBuilder(Entities):
"""Turn a document into a Beautiful Soup object tree."""
@@ -163,3 +162,6 @@ class HTMLTreeBuilder(TreeBuilder):
raise StopParsing
pass
return False
+
+from _lxml import *
+from _html5lib import *
diff --git a/beautifulsoup/builder/html5lib_builder.py b/beautifulsoup/builder/_html5lib.py
index 0a24ce1..9cca0b0 100644
--- a/beautifulsoup/builder/html5lib_builder.py
+++ b/beautifulsoup/builder/_html5lib.py
@@ -1,3 +1,7 @@
+__all__ = [
+ 'HTML5TreeBuilder',
+ ]
+
from beautifulsoup.builder import HTMLTreeBuilder, SAXTreeBuilder
import html5lib
from html5lib.constants import DataLossWarning
@@ -217,6 +221,6 @@ class TextNode(Element):
html5lib.treebuilders._base.Node.__init__(self, None)
self.element = element
self.soup = soup
-
+
def cloneNode(self):
raise NotImplementedError
diff --git a/beautifulsoup/builder/lxml_builder.py b/beautifulsoup/builder/_lxml.py
index 9f4c0bd..c2f368c 100644
--- a/beautifulsoup/builder/lxml_builder.py
+++ b/beautifulsoup/builder/_lxml.py
@@ -1,3 +1,8 @@
+__all__ = [
+ 'LXMLTreeBuilderForXML',
+ 'LXMLTreeBuilder',
+ ]
+
from lxml import etree
from beautifulsoup.element import Comment, Doctype
from beautifulsoup.builder import TreeBuilder, HTMLTreeBuilder