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

Class Comment

Lib/xml/dom/minidom.py:1212–1223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1210
1211
1212class Comment(CharacterData):
1213 nodeType = Node.COMMENT_NODE
1214 nodeName = "#comment"
1215
1216 def __init__(self, data):
1217 CharacterData.__init__(self)
1218 self._data = data
1219
1220 def writexml(self, writer, indent="", addindent="", newl=""):
1221 if "--" in self.data:
1222 raise ValueError("'--' is not allowed in a comment node")
1223 writer.write("%s<!--%s-->%s" % (indent, self.data, newl))
1224
1225
1226class CDATASection(Text):

Callers 1

createCommentMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…