← Back
Editing: Windows.cpython-311.pyc
� %�c� � �V � d dl Z ddlmZ ddlmZ ddlmZ ddlmZm Z e � � 5 Z d dlmZ d dlm Z e j n# e$ r d dlZd dl Z e j Y nw xY wddd� � n# 1 swxY w Y e j e� � Z G d � d � � Z G d� de� � Z G d � de� � ZdS )� N� )� properties)�KeyringBackend)�SimpleCredential)�PasswordDeleteError�ExceptionRaisedContext)� pywintypes)� win32credc � � e Zd Zdd�Zd� ZdS )�PersistenceNc �8 � t |dt j � � S )N�_persist)�getattrr �CRED_PERSIST_ENTERPRISE)�self�keyring�types �:/usr/lib/python3/dist-packages/keyring/backends/Windows.py�__get__zPersistence.__get__ s � ��w� �I�,M�N�N�N� c �� � t |t � � r@d|� dd� � � � � z }t t |� � }t |d|� � dS )z� Set the persistence value on the Keyring. Value may be one of the win32cred.CRED_PERSIST_* constants or a string representing one of those constants. For example, 'local machine' or 'session'. � CRED_PERSIST_� �_r N)� isinstance�str�replace�upperr r �setattr)r r �value�attrs r �__set__zPersistence.__set__ sa � � �e�S�!�!� -�"�U�]�]�3��%<�%<�%B�%B�%D�%D�D�D��I�t�,�,�E����U�+�+�+�+�+r )N)�__name__� __module__�__qualname__r r"