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

Method close

Lib/xml/sax/xmlreader.py:141–152  ·  view source on GitHub ↗

This method is called when the entire XML document has been passed to the parser through the feed method, to notify the parser that there are no more data. This allows the parser to do the final checks on the document and empty the internal data buffer. The p

(self)

Source from the content-addressed store, hash-verified

139 raise NotImplementedError("prepareParser must be overridden!")
140
141 def close(self):
142 """This method is called when the entire XML document has been
143 passed to the parser through the feed method, to notify the
144 parser that there are no more data. This allows the parser to
145 do the final checks on the document and empty the internal
146 data buffer.
147
148 The parser will not be ready to parse another document until
149 the reset method has been called.
150
151 close may raise SAXException."""
152 raise NotImplementedError("This method must be implemented!")
153
154 def reset(self):
155 """This method is called after close has been called to reset

Callers 1

parseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected