]> granicus.if.org Git - python/commitdiff
Fixed a bug that caused namespace names to be reported as lists rather
authorLars Gustäbel <lars@gustaebel.de>
Thu, 19 Oct 2000 07:36:29 +0000 (07:36 +0000)
committerLars Gustäbel <lars@gustaebel.de>
Thu, 19 Oct 2000 07:36:29 +0000 (07:36 +0000)
than tuples.

Lib/xml/sax/expatreader.py

index 2f9a2977a19c3f483ee78edf9925cde7625986b0..fed5e2d3858b7531f9e5365a5fb447501b660095 100644 (file)
@@ -145,6 +145,8 @@ class ExpatParser(xmlreader.IncrementalParser, xmlreader.Locator):
         pair = string.split(name)
         if len(pair) == 1:
             pair = (None, name)
+        else:
+            pair = tuple(pair)
 
         newattrs = {}
         for (aname, value) in attrs.items():