Skip to content

Commit af65a4e

Browse files
author
nnorwitz
committed
Add missing self. before curNode. This may need to be committed
to PyXML, I'm not sure of the procedure. git-svn-id: http://svn.python.org/projects/python/trunk@33326 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 5e4c5d5 commit af65a4e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/xml/dom/expatbuilder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def pi_handler(self, target, data):
269269
node = self.document.createProcessingInstruction(target, data)
270270
_append_child(self.curNode, node)
271271
if self._filter and self._filter.acceptNode(node) == FILTER_REJECT:
272-
curNode.removeChild(node)
272+
self.curNode.removeChild(node)
273273

274274
def character_data_handler_cdata(self, data):
275275
childNodes = self.curNode.childNodes

0 commit comments

Comments
 (0)