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.

    >   ÚthisÚnextZdisownÚappendZthisownZownÚacquirec              
   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 r�qvt| |ƒrœqvt| |t||ƒƒ qvd S )NÚ_)Ú_typeÚitemsÚhasattrÚsetattrÚgetattrÚ_mapÚlistÚmapÚdirÚ
startswithÚ
_blacklist)ÚselfZfragileÚkeyÚfunc© r   ú1/usr/lib64/python3.9/site-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"   -