(self, email)
Find GPG key with matching email address on UID
Find GPG key with matching email address on UID
Find GPG key with matching email address on UID
def _find_gpg_key_by_email(self, email):
        """Find GPG key with matching email address on UID"""

        # Fetch the list of current private keys
        current_priv_keys = self.gpg.list_keys(True)

        for key in current_priv_keys:
            for uid in key['uids']:
                if (email in uid):
                    return key
def _find_gpg_key_by_email ( self , email ) : # Fetch the list of current private keys current_priv_keys = self . gpg . list_keys ( True ) for key in current_priv_keys : for uid in key [ 'uids' ] : if ( email in uid ) : return key