a
    U\                     @   s  d dl mZmZmZ [[[G dd deZG dd deZG dd deZG dd	 d	eZG d
d deZ	G dd deZ
G dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG d d! d!eZd"S )#    )absolute_importprint_functionunicode_literalsc                   @   s0   e Zd ZdZi Zi Zh dZdd Zdd ZdS )Resultz>Result object

    Describes the result of an operation.

    >   ZthisownthisZdisownacquireappendnextZownc              
   C   s   | j  D ](\}}t||r
t| ||t|| q
| j D ].\}}t||r>t| |tt|t|| q>t|D ]8}|	dsv|| j
v rqvt| |rqvt| |t|| qvd S )N_)_typeitemshasattrsetattrgetattr_maplistmapdir
startswith
_blacklist)selfZfragilekeyfunc r   -/usr/lib/python3/dist-packages/gpg/results.py__init__6   s    


zResult.__init__c                    s(   d  jjd fddt D S )Nz{}({})z, c                 3   s*   | ]"}| d sd|t |V  qdS )r
   z{}={!r}N)r   formatr   ).0kr   r   r   	<genexpr>J   s   
z"Result.__repr__.<locals>.<genexpr>)r   	__class____name__joinr   r   r   r   r   __repr__G   s    zResult.__repr__N)	r"   
__module____qualname____doc__r   r   r   r   r$   r   r   r   r   r   !   s   
r   c                   @   s   e Zd ZdS )
InvalidKeyNr"   r%   r&   r   r   r   r   r(   N   s   r(   c                   @   s   e Zd ZeedZdS )EncryptResult)Zinvalid_recipientsN)r"   r%   r&   dictr(   r   r   r   r   r   r*   R   s   r*   c                   @   s   e Zd ZdS )	RecipientNr)   r   r   r   r   r,   V   s   r,   c                   @   s"   e Zd ZeeedZeedZdS )DecryptResult)wrong_key_usageis_de_vs)Z
recipientsN)r"   r%   r&   r+   boolr   r,   r   r   r   r   r   r-   Z   s   r-   c                   @   s   e Zd ZdS )NewSignatureNr)   r   r   r   r   r1   _   s   r1   c                   @   s   e Zd ZeeedZdS )
SignResult)Zinvalid_signers
signaturesN)r"   r%   r&   r+   r(   r1   r   r   r   r   r   r2   c   s   r2   c                   @   s   e Zd ZdS )NotationNr)   r   r   r   r   r4   g   s   r4   c                   @   s$   e Zd ZeeeedZeedZdS )	Signature)r.   Zchain_modelr/   )Z	notationsN)r"   r%   r&   r+   r0   r   r4   r   r   r   r   r   r5   k   s   r5   c                   @   s   e Zd ZeedZdS )VerifyResult)r3   N)r"   r%   r&   r+   r5   r   r   r   r   r   r6   p   s   r6   c                   @   s   e Zd ZdS )ImportStatusNr)   r   r   r   r   r7   t   s   r7   c                   @   s   e Zd ZeedZdS )ImportResult)ZimportsN)r"   r%   r&   r+   r7   r   r   r   r   r   r8   x   s   r8   c                   @   s   e Zd ZeeedZdS )GenkeyResult)ZprimarysubNr"   r%   r&   r+   r0   r   r   r   r   r   r9   |   s   r9   c                   @   s   e Zd ZeedZdS )KeylistResult)Z	truncatedNr;   r   r   r   r   r<      s   r<   c                   @   s   e Zd ZdS )VFSMountResultNr)   r   r   r   r   r=      s   r=   c                   @   s   e Zd ZdS )
EngineInfoNr)   r   r   r   r   r>      s   r>   N)Z
__future__r   r   r   objectr   r(   r*   r,   r-   r1   r2   r4   r5   r6   r7   r8   r9   r<   r=   r>   r   r   r   r   <module>   s"   -