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

Method close

Lib/asyncio/unix_events.py:69–81  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

67 self._watcher = _ThreadedChildWatcher()
68
69 def close(self):
70 super().close()
71 if not sys.is_finalizing():
72 for sig in list(self._signal_handlers):
73 self.remove_signal_handler(sig)
74 else:
75 if self._signal_handlers:
76 warnings.warn(f"Closing the loop {self!r} "
77 f"on interpreter shutdown "
78 f"stage, skipping signal handlers removal",
79 ResourceWarning,
80 source=self)
81 self._signal_handlers.clear()
82
83 def _process_self_data(self, data):
84 for signum in data:

Callers 10

create_unix_serverMethod · 0.45
__del__Method · 0.45
_call_connection_lostMethod · 0.45
__del__Method · 0.45
_call_connection_lostMethod · 0.45
_startMethod · 0.45
_do_waitMethod · 0.45
can_use_pidfdFunction · 0.45

Calls 5

remove_signal_handlerMethod · 0.95
superClass · 0.85
listClass · 0.85
warnMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected