diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-26 23:46:51 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-26 23:46:51 -0500 |
commit | d9f49a66e4a7dfd93823f2396796ed6c55f69648 (patch) | |
tree | 021886f2b0e2158d87d33417b8b687dfb1cee923 | |
parent | da5bf1b3deb9aaa31b02d72ae502a36fc0c081f8 (diff) |
Updated TODO.
-rw-r--r-- | TODO | 7 | ||||
-rw-r--r-- | beautifulsoup/__init__.py | 2 |
2 files changed, 2 insertions, 7 deletions
@@ -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: |