summaryrefslogtreecommitdiffstats
path: root/Lib/xml/sax/expatreader.py
diff options
context:
space:
mode:
authorLars Gustäbel <lars@gustaebel.de>2000-10-19 07:36:29 (GMT)
committerLars Gustäbel <lars@gustaebel.de>2000-10-19 07:36:29 (GMT)
commitd2f5a9ac4b161018945cdb5e5a26a722ae86cdb9 (patch)
treec5a6f8d3325dd8b55b2d1217526c1b0232fad8b7 /Lib/xml/sax/expatreader.py
parent4a41f54958288b0ba2e1823dcbeab545e9e22939 (diff)
downloadcpython-d2f5a9ac4b161018945cdb5e5a26a722ae86cdb9.zip
cpython-d2f5a9ac4b161018945cdb5e5a26a722ae86cdb9.tar.gz
cpython-d2f5a9ac4b161018945cdb5e5a26a722ae86cdb9.tar.bz2
Fixed a bug that caused namespace names to be reported as lists rather
than tuples.
Diffstat (limited to 'Lib/xml/sax/expatreader.py')
-rw-r--r--Lib/xml/sax/expatreader.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/xml/sax/expatreader.py b/Lib/xml/sax/expatreader.py
index 2f9a297..fed5e2d 100644
--- a/Lib/xml/sax/expatreader.py
+++ b/Lib/xml/sax/expatreader.py
@@ -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():