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

Method reset

Lib/xml/dom/expatbuilder.py:166–172  ·  view source on GitHub ↗

Free all data structures used during DOM construction.

(self)

Source from the content-addressed store, hash-verified

164 return self._parser
165
166 def reset(self):
167 """Free all data structures used during DOM construction."""
168 self.document = theDOMImplementation.createDocument(
169 EMPTY_NAMESPACE, None, None)
170 self.curNode = self.document
171 self._elem_info = self.document._elem_info
172 self._cdata = False
173
174 def install(self, parser):
175 """Install the callbacks needed to build the DOM into the parser."""

Callers 6

__init__Method · 0.95
parseFileMethod · 0.95
parseStringMethod · 0.95
resetMethod · 0.45
resetMethod · 0.45
resetMethod · 0.45

Calls 1

createDocumentMethod · 0.80

Tested by

no test coverage detected