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

Method _get_wholeText

Lib/xml/dom/minidom.py:1130–1146  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1128 # DOM Level 3 (WD 9 April 2002)
1129
1130 def _get_wholeText(self):
1131 L = [self.data]
1132 n = self.previousSibling
1133 while n is not None:
1134 if n.nodeType in (Node.TEXT_NODE, Node.CDATA_SECTION_NODE):
1135 L.insert(0, n.data)
1136 n = n.previousSibling
1137 else:
1138 break
1139 n = self.nextSibling
1140 while n is not None:
1141 if n.nodeType in (Node.TEXT_NODE, Node.CDATA_SECTION_NODE):
1142 L.append(n.data)
1143 n = n.nextSibling
1144 else:
1145 break
1146 return ''.join(L)
1147
1148 def replaceWholeText(self, content):
1149 # XXX This needs to be seriously changed if minidom ever

Callers

nothing calls this directly

Calls 3

insertMethod · 0.45
appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected