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

Method __del__

Lib/xml/etree/ElementTree.py:1272–1277  ·  view source on GitHub ↗
(self, _warn=warnings.warn)

Source from the content-addressed store, hash-verified

1270 gen.close()
1271
1272 def __del__(self, _warn=warnings.warn):
1273 if close_source:
1274 try:
1275 _warn(f"unclosed iterparse iterator {source.name!r}", ResourceWarning, stacklevel=2)
1276 finally:
1277 source.close()
1278
1279 it = IterParseIterator()
1280 it.root = None

Callers

nothing calls this directly

Calls 2

_warnFunction · 0.50
closeMethod · 0.45

Tested by

no test coverage detected