Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 041411a

Browse files
committed
Merge with PyXML 1.34: Correct typo. Fixes #674700.
1 parent 995359c commit 041411a

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
@@ -334,7 +334,7 @@ def comment_handler(self, data):
334334
node = self.document.createComment(data)
335335
_append_child(self.curNode, node)
336336
if self._filter and self._filter.acceptNode(node) == FILTER_REJECT:
337-
curNode.removeChild(node)
337+
self.curNode.removeChild(node)
338338

339339
def start_cdata_section_handler(self):
340340
self._cdata = True

0 commit comments

Comments
 (0)