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

Method createCDATASection

Lib/xml/dom/minidom.py:1702–1708  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

1700 return t
1701
1702 def createCDATASection(self, data):
1703 if not isinstance(data, str):
1704 raise TypeError("node contents must be a string")
1705 c = CDATASection()
1706 c.data = data
1707 c.ownerDocument = self
1708 return c
1709
1710 def createComment(self, data):
1711 c = Comment(data)

Callers 4

testWholeTextMethod · 0.80
setupMethod · 0.80
_clone_nodeFunction · 0.80

Calls 1

CDATASectionClass · 0.85

Tested by 2

testWholeTextMethod · 0.64
setupMethod · 0.64