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

Method flush

Lib/xml/sax/expatreader.py:215–227  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

213 self._err_handler.fatalError(exc)
214
215 def flush(self):
216 if self._parser is None:
217 return
218
219 was_enabled = self._parser.GetReparseDeferralEnabled()
220 try:
221 self._parser.SetReparseDeferralEnabled(False)
222 self._parser.Parse(b"", False)
223 except expat.error as e:
224 exc = SAXParseException(expat.ErrorString(e.code), e, self)
225 self._err_handler.fatalError(exc)
226 finally:
227 self._parser.SetReparseDeferralEnabled(was_enabled)
228
229 def _close_source(self):
230 source = self._source

Callers

nothing calls this directly

Calls 2

SAXParseExceptionClass · 0.85
fatalErrorMethod · 0.45

Tested by

no test coverage detected