parameters: (host, port)
return_statement: return server
docstring: Return a local server socket listening on the given port.
docstring_summary: Return a local server socket listening on the given port.
docstring_tokens: Return a local server socket listening on the given port .
function: def create_server(host, port):
      """Return a local server socket listening on the given port."""
      if host is None:
          host = 'localhost'
      server = _new_sock()
      server.bind((host, port))
      server.listen(1)
      return server
function_tokens: def create_server ( host , port ) : if host is None : host = 'localhost' server = _new_sock ( ) server . bind ( ( host , port ) ) server . listen ( 1 ) return server