summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODO7
-rw-r--r--beautifulsoup/__init__.py2
2 files changed, 2 insertions, 7 deletions
diff --git a/TODO b/TODO
index a799bbb..a6f444f 100644
--- a/TODO
+++ b/TODO
@@ -1,11 +1,6 @@
Bare ampersands should be converted to HTML entities upon output.
-It should also be possible to, on output, convert to HTML entities any
-Unicode characters found in htmlentitydefs.codepoint2name. (This
-algorithm would allow me to simplify Unicode, Dammit--convert
-everything to Unicode, and then convert to entities upon output, not
-treating smart quotes differently from any other Unicode character
-that can be represented as an entity.)
+Add namespace support.
XML handling:
diff --git a/beautifulsoup/__init__.py b/beautifulsoup/__init__.py
index 53130e0..518e95f 100644
--- a/beautifulsoup/__init__.py
+++ b/beautifulsoup/__init__.py
@@ -112,7 +112,7 @@ class BeautifulSoup(Tag):
if builder is None:
if isinstance(features, basestring):
features = [features]
- if len(features) == 0:
+ if features is None or len(features) == 0:
features = self.DEFAULT_BUILDER_FEATURES
builder_class = builder_registry.lookup(*features)
if builder_class is None: