parameters: (key)
return_statement: return (accept, accept_binary)
docstring: Computes value for the Sec-WebSocket-Accept header from value of the
      Sec-WebSocket-Key header.
docstring_summary: Computes value for the Sec-WebSocket-Accept header from value of the
      Sec-WebSocket-Key header.
docstring_tokens: Computes value for the Sec - WebSocket - Accept header from value of the Sec - WebSocket - Key header .
function: def compute_accept(key):
      """Computes value for the Sec-WebSocket-Accept header from value of the
      Sec-WebSocket-Key header.
      """
  
      accept_binary = util.sha1_hash(
          key + common.WEBSOCKET_ACCEPT_UUID).digest()
      accept = base64.b64encode(accept_binary)
  
      return (accept, accept_binary)
function_tokens: def compute_accept ( key ) : accept_binary = util . sha1_hash ( key + common . WEBSOCKET_ACCEPT_UUID ) . digest ( ) accept = base64 . b64encode ( accept_binary ) return ( accept , accept_binary )