From d2f5a9ac4b161018945cdb5e5a26a722ae86cdb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Gust=C3=A4bel?= Date: Thu, 19 Oct 2000 07:36:29 +0000 Subject: Fixed a bug that caused namespace names to be reported as lists rather than tuples. --- Lib/xml/sax/expatreader.py | 2 ++ 1 file changed, 2 insertions(+) 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(): -- cgit v0.12