code: def accept(self):
          
          fd, addr = self._accept()
          sock = socket(self.family, self.type, self.proto, fileno=fd)
          # Issue #7995: if no default timeout is set and the listening
          # socket had a (non-zero) timeout, force the new socket in blocking
          # mode to override platform-specific socket flags inheritance.
          if getdefaulttimeout() is None and self.gettimeout():
              sock.setblocking(True)
          return sock, addr
docs: accept() -> (socket object, address info)
  
          Wait for an incoming connection.  Return a new socket
          representing the connection, and the address of the client.
          For IP sockets, the address info is a pair (hostaddr, port).