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

Method reset

Lib/test/test_pulldom.py:289–293  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

287 """Allows us to drive SAX2DOM from a DOMEventStream."""
288
289 def reset(self):
290 self.pulldom = pulldom.SAX2DOM()
291 # This content handler relies on namespace support
292 self.parser.setFeature(xml.sax.handler.feature_namespaces, 1)
293 self.parser.setContentHandler(self.pulldom)
294
295
296class SAX2DOMTestCase(unittest.TestCase):

Callers

nothing calls this directly

Calls 2

setFeatureMethod · 0.45
setContentHandlerMethod · 0.45

Tested by

no test coverage detected