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

Method close

Lib/test/support/asyncore.py:393–403  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

391 raise
392
393 def close(self):
394 self.connected = False
395 self.accepting = False
396 self.connecting = False
397 self.del_channel()
398 if self.socket is not None:
399 try:
400 self.socket.close()
401 except OSError as why:
402 if why.errno not in (ENOTCONN, EBADF):
403 raise
404
405 # log and log_info may be overridden to provide more sophisticated
406 # logging and warning methods. In general, log is for 'hit' logging

Callers 15

handle_closeMethod · 0.95
handle_closeMethod · 0.45
kill_pythonFunction · 0.45
check_valid_fileFunction · 0.45
run_no_yield_async_fnFunction · 0.45
run_yielding_async_fnFunction · 0.45
bind_unix_socketFunction · 0.45
_is_ipv6_enabledFunction · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 1

del_channelMethod · 0.95

Tested by

no test coverage detected