summaryrefslogtreecommitdiffstats
path: root/Lib/xml
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/xml')
-rw-r--r--Lib/xml/dom/expatbuilder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xml/dom/expatbuilder.py b/Lib/xml/dom/expatbuilder.py
index 5e769ca..59e3ac4 100644
--- a/Lib/xml/dom/expatbuilder.py
+++ b/Lib/xml/dom/expatbuilder.py
@@ -334,7 +334,7 @@ class ExpatBuilder:
node = self.document.createComment(data)
_append_child(self.curNode, node)
if self._filter and self._filter.acceptNode(node) == FILTER_REJECT:
- curNode.removeChild(node)
+ self.curNode.removeChild(node)
def start_cdata_section_handler(self):
self._cdata = True