%PDF- %PDF-
| Direktori : /lib/python3/dist-packages/keyring/backends/__pycache__/ |
| Current File : //lib/python3/dist-packages/keyring/backends/__pycache__/SecretService.cpython-312.pyc |
�
�eV � �� � d dl mZ d dlZddlmZ ddlmZ ddlmZ ddlm Z ddl
mZmZm
Z
mZ d dlZd dlmZ ej( e� Z G d � d
ej. e� Zy# e$ r Y �0e$ r Y �6w xY w)� )�closingN� )�backend)�
properties)�KeyringBackend)�SimpleCredential)� InitError�PasswordDeleteError�ExceptionRaisedContext�
KeyringLockedc �b � e Zd ZdZdZej defd�� Zd� Z d� Z
d� Zd� Zd � Z
d
� Zy)�KeyringzSecret Service KeyringzPython keyring library�returnc � � t � 5 }t j d d d � rt d� �t j dk rt d� � t t j � � 5 }t j |� st d� � d d d � y# 1 sw Y �}xY w# 1 sw Y yxY w# t j $ r}t d|z � �d }~ww xY w)NzSecretStorage required)� r z#SecretStorage 3.2 or newer requiredzJThe Secret Service daemon is neither running nor activatable through D-Busz&Unable to initialize SecretService: %s� )
r �
secretstorage�__name__�RuntimeError�__version_tuple__r � dbus_init�check_service_availability�
exceptions�SecretStorageException)�cls�exc�
connection�es �@/usr/lib/python3/dist-packages/keyring/backends/SecretService.py�priorityzKeyring.priority s� � �
#�
%� #���"�"� #���7�8�8��*�*�V�3��D�E�E� M���0�0�2�3�
�z�$�?�?�
�K�&�4�� � L�
� � #� #��
� �� �0�0� M��G�!�K�L�L�� M�sA �B�B0 �-!B$�B0 �B!�$B-�)B0 �-B0 �0C�C�Cc �| � t j � } t | d� r!t j || j � }nt j
|� }|j � r+|j � |j � rt d� �|S # t j $ r}t d|z � �d}~ww xY w)z�If self.preferred_collection contains a D-Bus path,
the collection at that address is returned. Otherwise,
the default collection is returned.
�preferred_collectionz$Failed to create the collection: %s.Nz Failed to unlock the collection!)r r �hasattr�
Collectionr"