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

Method startDocument

Lib/xml/sax/saxutils.py:150–152  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

148 # ContentHandler methods
149
150 def startDocument(self):
151 self._write('<?xml version="1.0" encoding="%s"?>\n' %
152 self._encoding)
153
154 def endDocument(self):
155 self._flush()

Callers 15

test_xmlgen_basicMethod · 0.95
test_xmlgen_contentMethod · 0.95
test_xmlgen_piMethod · 0.95
test_xmlgen_encodingMethod · 0.95
test_xmlgen_ignorableMethod · 0.95

Calls 1

_writeMethod · 0.45

Tested by 15

test_xmlgen_basicMethod · 0.76
test_xmlgen_contentMethod · 0.76
test_xmlgen_piMethod · 0.76
test_xmlgen_encodingMethod · 0.76
test_xmlgen_ignorableMethod · 0.76