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

Method accept

Lib/idlelib/rpc.py:536–544  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

534 self.listening_sock.listen(1)
535
536 def accept(self):
537 working_sock, address = self.listening_sock.accept()
538 if self.debugging:
539 print("****** Connection request from ", address, file=sys.__stderr__)
540 if address[0] == LOCALHOST:
541 SocketIO.__init__(self, working_sock)
542 else:
543 print("** Invalid host: ", address, file=sys.__stderr__)
544 raise OSError
545
546 def get_remote_proxy(self, oid):
547 return RPCProxy(self, oid)

Callers 3

_wait_for_ready_signalFunction · 0.45
start_subprocessMethod · 0.45
restart_subprocessMethod · 0.45

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected