summaryrefslogtreecommitdiffstats
path: root/Lib/xml/dom
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/xml/dom')
-rw-r--r--Lib/xml/dom/minidom.py4
-rw-r--r--Lib/xml/dom/pulldom.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/Lib/xml/dom/minidom.py b/Lib/xml/dom/minidom.py
index 337ff03..981e511 100644
--- a/Lib/xml/dom/minidom.py
+++ b/Lib/xml/dom/minidom.py
@@ -41,7 +41,7 @@ class Node:
Node.allnodes[index]=repr( self.__dict__ )
if Node.debug==None:
Node.debug=StringIO()
- #open( "debug4.out", "w" )
+ #open( "debug4.out", "w" )
Node.debug.write( "create %s\n"%index )
def __getattr__( self, key ):
@@ -230,7 +230,7 @@ dictionary"""
else:
assert isinstance( value, Attr ) or type( value )==types.StringType
node=value
- old=self._attrs.get( attname, None)
+ old=self._attrs.get( attname, None)
if old:
old.unlink()
self._attrs[node.name]=node
diff --git a/Lib/xml/dom/pulldom.py b/Lib/xml/dom/pulldom.py
index 0c047f6..1f7c699 100644
--- a/Lib/xml/dom/pulldom.py
+++ b/Lib/xml/dom/pulldom.py
@@ -22,7 +22,7 @@ class PullDOM:
def setDocumentLocator( self, locator ): pass
- def startElement( self, tagName , attrs ):
+ def startElement( self, name, tagName , attrs ):
if not hasattr( self, "curNode" ):
# FIXME: hack!
self.startDocument( )
@@ -42,7 +42,7 @@ class PullDOM:
self.lastEvent=self.lastEvent[1]
#self.events.append( (START_ELEMENT, node) )
- def endElement( self, name ):
+ def endElement( self, name, tagName ):
node = self.curNode
self.lastEvent[1]=[(END_ELEMENT, node), None ]
self.lastEvent=self.lastEvent[1]