%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3/dist-packages/keyring/backends/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3/dist-packages/keyring/backends/__pycache__/chainer.cpython-312.pyc

�

�e���V�dZddlmZddlmZddlmZGd�dej�Zy)	zV
Keyring Chainer - iterates over other viable backends to
discover passwords in each.
�)�backend)�
properties�)�failc�z�eZdZdZdZejdefd��Zejd��Z	d�Z
d�Zd�Zd	�Z
y
)�ChainerBackendzZ
    >>> ChainerBackend()
    <keyring.backends.chainer.ChainerBackend object at ...>
    T�returnc�p�t|j�dkDrdStjjdz
S)z�
        If there are backends to chain, high priority
        Otherwise very low priority since our operation when empty
        is the same as null.
        r�
)�len�backendsr�Keyring�priority)�clss �:/usr/lib/python3/dist-packages/keyring/backends/chainer.pyrzChainerBackend.prioritys.������&��*�r�K����1F�1F��1J�K�c�|�d�}t|tj��}t|tjd��S)z5
        Discover all keyrings for chaining.
        c��tjxst}t|t�xr||�xr|j
dkDS)N�)r�_limit�bool�
isinstancerr)�keyring�limits  r�allowz&ChainerBackend.backends.<locals>.allow$sA���N�N�*�d�E��w��7�7�)��'�N�)��$�$�q�(�
rT)�key�reverse)�filterr�get_all_keyring�sorted�by_priority)rr�alloweds   rr
zChainerBackend.backendss3��	���� 7� 7� 9�:���g�7�#6�#6��E�Erc�V�|jD]}|j||�}|��|cSy�N)r
�get_password)�self�service�usernamer�passwords     rr%zChainerBackend.get_password/s2���}�}�	 �G��+�+�G�X�>�H��#���	 rc�n�|jD]}	|j|||�cSy#t$rY�&wxYwr$)r
�set_password�NotImplementedError)r&r'r(r)rs     rr+zChainerBackend.set_password5sC���}�}�	�G�
��+�+�G�X�x�H�H�	��'�
��
�s�(�	4�4c�l�|jD]}	|j||�cSy#t$rY�%wxYwr$)r
�delete_passwordr,)r&r'r(rs    rr.zChainerBackend.delete_password<sA���}�}�	�G�
��.�.�w��A�A�	��'�
��
�s�'�	3�3c�V�|jD]}|j||�}|��|cSyr$)r
�get_credential)r&r'r(r�
credentials     rr0zChainerBackend.get_credentialCs3���}�}�	"�G� �/�/���B�J��%�!�!�	"rN)�__name__�
__module__�__qualname__�__doc__�viabler�
classproperty�floatrr
r%r+r.r0�rrrrs`����F����L��L��L����F��F�  ���"rrN)r5�r�_compatrr�KeyringBackendrr9rr�<module>r=s'���
� ��<"�W�+�+�<"r

Zerion Mini Shell 1.0