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

Method cleanup

Lib/test/test_sax.py:837–839  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

835 writer = codecs.open(self.fname, 'w', encoding='ascii',
836 errors='xmlcharrefreplace', buffering=0)
837 def cleanup():
838 writer.close()
839 os_helper.unlink(self.fname)
840 self.addCleanup(cleanup)
841 def getvalue():
842 # Windows will not let use reopen without first closing

Callers

nothing calls this directly

Calls 2

closeMethod · 0.45
unlinkMethod · 0.45

Tested by

no test coverage detected