aiosasl/__init__.py
def abort(self):
        """
        Abort an initiated SASL authentication process. The expected result
        state is ``failure``.
        """
        if self._state == SASLState.INITIAL:
            raise RuntimeError("SASL authentication hasn't started yet")

        if self._state == SASLState.SUCCESS_SIMULATE_CHALLENGE:
            raise RuntimeError("SASL message exchange already over")

        try:
            return (yield from self.interface.abort())
        finally:
            self._state = SASLState.FAILURE
def abort(self):
        if self._state == SASLState.INITIAL:
            raise RuntimeError("SASL authentication hasn't started yet")

        if self._state == SASLState.SUCCESS_SIMULATE_CHALLENGE:
            raise RuntimeError("SASL message exchange already over")

        try:
            return (yield from self.interface.abort())
        finally:
            self._state = SASLState.FAILURE
def abort ( self ) : if self . _state == SASLState . INITIAL : raise RuntimeError ( "SASL authentication hasn't started yet" ) if self . _state == SASLState . SUCCESS_SIMULATE_CHALLENGE : raise RuntimeError ( "SASL message exchange already over" ) try : return ( yield from self . interface . abort ( ) ) finally : self . _state = SASLState . FAILURE
Abort an initiated SASL authentication process. The expected result
        state is ``failure``.
Abort an initiated SASL authentication process . The expected result state is failure .