(self, key, value)
Parse a status code from the attached GnuPG process.

        :raises: :exc:`~exceptions.ValueError` if the status message is unknown.
Parse a status code from the attached GnuPG process.
Parse a status code from the attached GnuPG process .
def _handle_status(self, key, value):
        """Parse a status code from the attached GnuPG process.

        :raises: :exc:`~exceptions.ValueError` if the status message is unknown.
        """
        if key in ("USERID_HINT", "NEED_PASSPHRASE", "ALREADY_SIGNED",
                   "GOOD_PASSPHRASE", "GOT_IT", "GET_BOOL"):
            pass
        elif key in ("BAD_PASSPHRASE", "MISSING_PASSPHRASE"):
            self.status = "%s: %s" % (key.replace("_", " ").lower(), value)
        else:
            self.status = 'failed'
            raise ValueError("Key signing, unknown status message: %r ::%s" % (key, value))
def _handle_status ( self , key , value ) : if key in ( "USERID_HINT" , "NEED_PASSPHRASE" , "ALREADY_SIGNED" , "GOOD_PASSPHRASE" , "GOT_IT" , "GET_BOOL" ) : pass elif key in ( "BAD_PASSPHRASE" , "MISSING_PASSPHRASE" ) : self . status = "%s: %s" % ( key . replace ( "_" , " " ) . lower ( ) , value ) else : self . status = 'failed' raise ValueError ( "Key signing, unknown status message: %r ::%s" % ( key , value ) )