Author: alex.martelli
Date: Mon Aug 21 21:53:20 2006
New Revision: 51440
Modified:
python/branches/p3yk/Lib/xml/dom/minidom.py
Log:
Changed minidom.py to work correctly with new-style classes (since
there are no other kinds of classes in Py3K).
Modified: python/branches/p3yk/Lib/xml/dom/minidom.py
==============================================================================
--- python/branches/p3yk/Lib/xml/dom/minidom.py (original)
+++ python/branches/p3yk/Lib/xml/dom/minidom.py Mon Aug 21 21:53:20 2006
@@ -359,6 +359,8 @@
# nodeValue and value are set elsewhere
def _get_localName(self):
+ if 'localName' in self.__dict__:
+ return self.__dict__['localName']
return self.nodeName.split(":", 1)[-1]
def _get_name(self):
@@ -662,6 +664,8 @@
# namespaces.
def _get_localName(self):
+ if 'localName' in self.__dict__:
+ return self.__dict__['localName']
return self.tagName.split(":", 1)[-1]
def _get_tagName(self):
@@ -1118,7 +1122,7 @@
return None
-class Comment(Childless, CharacterData):
+class Comment(CharacterData):
nodeType = Node.COMMENT_NODE
nodeName = "#comment"
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins