MCPcopy Index your code
hub / github.com/python/cpython / comment

Method comment

Lib/xml/dom/pulldom.py:131–138  ·  view source on GitHub ↗
(self, s)

Source from the content-addressed store, hash-verified

129 self.lastEvent = self.lastEvent[1]
130
131 def comment(self, s):
132 if self.document:
133 node = self.document.createComment(s)
134 self.lastEvent[1] = [(COMMENT, node), None]
135 self.lastEvent = self.lastEvent[1]
136 else:
137 event = [(COMMENT, s), None]
138 self.pending_events.append(event)
139
140 def processingInstruction(self, target, data):
141 if self.document:

Callers

nothing calls this directly

Calls 2

createCommentMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected