MCPcopy Create free account
hub / github.com/agent0ai/agent-zero / __del__

Method __del__

plugins/_code_execution/helpers/tty_session.py:37–46  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

35 self._pty_master_ref = None
36
37 def __del__(self):
38 # Simple cleanup on object destruction
39 import nest_asyncio
40
41 nest_asyncio.apply()
42 if hasattr(self, "close"):
43 try:
44 asyncio.run(self.close())
45 except Exception:
46 pass
47
48 # ── user-facing coroutines ────────────────────────────────────────
49 async def start(self):

Callers

nothing calls this directly

Calls 2

closeMethod · 0.95
runMethod · 0.45

Tested by

no test coverage detected