MCPcopy Index your code
hub / github.com/RustPython/RustPython / __del__

Method __del__

Lib/asyncio/streams.py:404–410  ·  view source on GitHub ↗
(self, warnings=warnings)

Source from the content-addressed store, hash-verified

402 protocol._replace_transport(new_transport)
403
404 def __del__(self, warnings=warnings):
405 if not self._transport.is_closing():
406 if self._loop.is_closed():
407 warnings.warn("loop is closed", ResourceWarning)
408 else:
409 self.close()
410 warnings.warn(f"unclosed {self!r}", ResourceWarning)
411
412class StreamReader:
413

Callers

nothing calls this directly

Calls 4

closeMethod · 0.95
is_closingMethod · 0.45
is_closedMethod · 0.45
warnMethod · 0.45

Tested by

no test coverage detected