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

Method close

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

Source from the content-addressed store, hash-verified

401 raise
402
403 def close(self):
404 self.connected = False
405 self.accepting = False
406 self.connecting = False
407 self.del_channel()
408 if self.socket is not None:
409 try:
410 self.socket.close()
411 except OSError as why:
412 if why.errno not in (ENOTCONN, EBADF):
413 raise
414
415 # log and log_info may be overridden to provide more sophisticated
416 # 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
run_ptyFunction · 0.45

Calls 1

del_channelMethod · 0.95

Tested by

no test coverage detected