summaryrefslogtreecommitdiff
path: root/beautifulsoup/builder/__init__.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2011-02-26 20:56:47 -0500
committerLeonard Richardson <leonard.richardson@canonical.com>2011-02-26 20:56:47 -0500
commitef5770589595e80cbd9690b64504a2166b3558fd (patch)
treeac9313b90f2fb5b0e93d5c1a4788c5a4ba0b523e /beautifulsoup/builder/__init__.py
parent48e0b434806f557e086abdf0393d071663e3770a (diff)
Emit an XML declaration when appropriate.
Diffstat (limited to 'beautifulsoup/builder/__init__.py')
-rw-r--r--beautifulsoup/builder/__init__.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/beautifulsoup/builder/__init__.py b/beautifulsoup/builder/__init__.py
index fb10628..10c6b7f 100644
--- a/beautifulsoup/builder/__init__.py
+++ b/beautifulsoup/builder/__init__.py
@@ -77,7 +77,7 @@ class TreeBuilder(object):
features = []
- assume_html = False
+ is_xml = False
preserve_whitespace_tags = set()
empty_element_tags = None # A tag will be considered an empty-element
# tag when and only when it has no contents.
@@ -185,8 +185,6 @@ class HTMLTreeBuilder(TreeBuilder):
Such as which tags are empty-element tags.
"""
- assume_html = True
-
preserve_whitespace_tags = set(['pre', 'textarea'])
empty_element_tags = set(['br' , 'hr', 'input', 'img', 'meta',
'spacer', 'link', 'frame', 'base'])