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

Method _close_source

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

Source from the content-addressed store, hash-verified

227 self._parser.SetReparseDeferralEnabled(was_enabled)
228
229 def _close_source(self):
230 source = self._source
231 try:
232 file = source.getCharacterStream()
233 if file is not None:
234 file.close()
235 finally:
236 file = source.getByteStream()
237 if file is not None:
238 file.close()
239
240 def close(self):
241 if (self._entity_stack or self._parser is None or

Callers 2

parseMethod · 0.95
closeMethod · 0.95

Calls 3

getCharacterStreamMethod · 0.80
getByteStreamMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected