0x1949 Team - FAZEMRX - MANAGER
Edit File: backend.cpython-310.pyc
o ���a� � @ s� d Z ddlZddlZddlZddlZddlmZ ddlZddl m Z mZmZ ddlm Z e�e�Ze�d�ZdZG dd � d ej�ZG d d� ded�ZG d d� d�ZG dd� de�Zdd� Zejdd� �ZdS )z Keyring implementation support � N)�Optional� )�credentials�errors�util)� properties�priorityc s e Zd ZdZ� fdd�Z� ZS )�KeyringBackendMetazn A metaclass that's both an ABCMeta and a type that keeps a registry of all (non-abstract) types. c s@ t � �|||� t| d�st� | _| j}| js|�| � d S d S )N�_classes)�super�__init__�hasattr�setr �__abstractmethods__�add)�cls�name�bases�dict�classes�� __class__� �1/usr/lib/python3/dist-packages/keyring/backend.pyr s �zKeyringBackendMeta.__init__)�__name__� __module__�__qualname__�__doc__r � __classcell__r r r r r s r c @ s� e Zd ZdZdd� Zdd� Zejedd� ��Z edd � �Z ejed d� ��Zdd � Ze jdededee fdd��Ze jdedededdfdd��Zdededdfdd�Zdedee deej fdd�Zdd� ZdS )�KeyringBackendz]The abstract base class of the keyring, every backend must implement this interface. c C s | � � d S �N)�set_properties_from_env)�selfr r r r , s zKeyringBackend.__init__c C � dS )a� Each backend class must supply a priority, a number (float or integer) indicating the priority of the backend relative to all other backends. The priority need not be static -- it may (and should) vary based attributes of the environment in which is runs (platform, available packages, etc.). A higher number indicates a higher priority. The priority should raise a RuntimeError with a message indicating the underlying cause if the backend is not suitable for the current environment. As a rule of thumb, a priority between zero but less than one is suitable, but a priority of one or greater is recommended. Nr �r r r r r 0 s zKeyringBackend.priorityc C s8 t �� � }| j W d � | S 1 sw Y | S r )r �ExceptionRaisedContextr )r �excr r r �viable@ s ��zKeyringBackend.viablec C s t t�d�| j�S )z6 Return all subclasses deemed viable. r'