diff options
author | Guido van Rossum <guido@python.org> | 2007-02-11 18:44:55 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-02-11 18:44:55 (GMT) |
commit | 091153d43bfe6b53c975c11de2266ee719e02824 (patch) | |
tree | e25371b6808880153952bf284a327e17c965f391 /Lib/xml | |
parent | 87b639505bc9b03c83849d486d545c49b608b230 (diff) | |
download | cpython-091153d43bfe6b53c975c11de2266ee719e02824.zip cpython-091153d43bfe6b53c975c11de2266ee719e02824.tar.gz cpython-091153d43bfe6b53c975c11de2266ee719e02824.tar.bz2 |
Make test_sax pass.
Diffstat (limited to 'Lib/xml')
-rw-r--r-- | Lib/xml/sax/xmlreader.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/xml/sax/xmlreader.py b/Lib/xml/sax/xmlreader.py index 1763ea4..4503315 100644 --- a/Lib/xml/sax/xmlreader.py +++ b/Lib/xml/sax/xmlreader.py @@ -304,10 +304,10 @@ class AttributesImpl: return name def getNames(self): - return self._attrs.keys() + return list(self._attrs.keys()) def getQNames(self): - return self._attrs.keys() + return list(self._attrs.keys()) def __len__(self): return len(self._attrs) @@ -316,7 +316,7 @@ class AttributesImpl: return self._attrs[name] def keys(self): - return self._attrs.keys() + return list(self._attrs.keys()) def __contains__(self, name): return name in self._attrs @@ -328,10 +328,10 @@ class AttributesImpl: return self.__class__(self._attrs) def items(self): - return self._attrs.items() + return list(self._attrs.items()) def values(self): - return self._attrs.values() + return list(self._attrs.values()) # ===== ATTRIBUTESNSIMPL ===== @@ -363,7 +363,7 @@ class AttributesNSImpl(AttributesImpl): return self._qnames[name] def getQNames(self): - return self._qnames.values() + return list(self._qnames.values()) def copy(self): return self.__class__(self._attrs, self._qnames) |