From: Lars Gustäbel Date: Thu, 19 Oct 2000 07:36:29 +0000 (+0000) Subject: Fixed a bug that caused namespace names to be reported as lists rather X-Git-Tag: v2.1a1~877 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d2f5a9ac4b161018945cdb5e5a26a722ae86cdb9;p=python Fixed a bug that caused namespace names to be reported as lists rather than tuples. --- diff --git a/Lib/xml/sax/expatreader.py b/Lib/xml/sax/expatreader.py index 2f9a2977a1..fed5e2d385 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():