diff emeraldtree/ElementTree.py @ 48:547347034e65

ElementTree - Change handling of undefined namespace
author Bastian Blank <bblank@thinkmo.de>
date Tue, 12 Aug 2008 13:10:33 +0200
parents e647f30cc08e
children d3767204a325
line wrap: on
line diff
--- a/emeraldtree/ElementTree.py	Sun Aug 03 20:59:44 2008 +0200
+++ b/emeraldtree/ElementTree.py	Tue Aug 12 13:10:33 2008 +0200
@@ -739,12 +739,7 @@
                 else:
                     qnames[qname] = encode(qname.name)
             else:
-                if default_namespace:
-                    # FIXME: can this be handled in XML 1.0?
-                    raise ValueError(
-                        "cannot use non-qualified names with "
-                        "default_namespace option"
-                        )
+                # XXX: What happens with undefined namespace?
                 qnames[qname] = encode(qname.name)
         except TypeError:
             _raise_serialization_error(qname)