(self, token)
:param unicode token: An authentication token previously created by
            session_for_api_key, session_for_username_password, or
            get_or_create_session_for_token.

        :return: a session for the given token, only if that token already
                 exists.
        :rtype: Session

        :raise: :obj:`KeyError` if no such thing exists.
:param unicode token: An authentication token previously created by
            session_for_api_key, session_for_username_password, or
            get_or_create_session_for_token.
: param unicode token : An authentication token previously created by session_for_api_key session_for_username_password or get_or_create_session_for_token .
def existing_session_for_token(self, token):
        """
        :param unicode token: An authentication token previously created by
            session_for_api_key, session_for_username_password, or
            get_or_create_session_for_token.

        :return: a session for the given token, only if that token already
                 exists.
        :rtype: Session

        :raise: :obj:`KeyError` if no such thing exists.
        """
        if token in self._token_to_session:
            return self._token_to_session[token]
        raise KeyError(token)
def existing_session_for_token ( self , token ) : if token in self . _token_to_session : return self . _token_to_session [ token ] raise KeyError ( token )