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

Method __del__

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

Source from the content-addressed store, hash-verified

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

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