| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/keyrings/alt/__pycache__/ |
Upload File : |
�
<&cF# � �" � d dl Z d dlZd dlZd dlmZ d dlmZ ddlmZ d dl m
Z
d dlmZm
Z
ddlmZ d dlZd dlZd dlZd dlZd dlZn# e$ r Y nw xY wd � Z G d
� de� � Z G d� d
e� � Z G d� de� � Z G d� de� � ZdS )� N)�
properties)�errors� )�escape)� platform_)�KeyringBackend�NullCrypter)�keyczarc � � t j � � 5 } t j j ddd� � n# 1 swxY w Y t | � � S )z�
Does this environment have pyfs 1.x installed?
Should return False even when Mercurial's Demand Import allowed import of
fs.*.
N)r �ExceptionRaisedContext�fs�opener�bool)�excs �3/usr/lib/python3/dist-packages/keyrings/alt/pyfs.py�has_pyfsr s~ � �
� &� (� (� �C�
� ���� � � � � � � � � � ���� � � � ��C�y�y�=�s �2�6�6c �� � � e Zd ZdZdZd� fd� Zej d� � � Ze d� � � Z
d� Zd � Zdd�Z
d� Zd
� Ze d� � � Zd� Zd� Zd� Zej d� � � Z� xZS )�BasicKeyringa� BasicKeyring is a Pyfilesystem-based implementation of
keyring.
It stores the password directly in the file, and supports
encryption and decryption. The encrypted password is stored in base64
format.
Being based on Pyfilesystem the file can be local or network-based and
served by any of the filesystems supported by Pyfilesystem including Amazon
S3, FTP, WebDAV, memory and more.
zkeyring_pyf_pass.cfgNTc � �� t t | � � � � � || _ t j � t j � � | j j
� � }|p|| _
|| _ || _ d S �N)
�superr �__init__�_crypter�os�path�joinr � data_root� __class__� _filename�_can_create�_cache_timeout)�self�crypter�filename�
can_create�
cache_timeout�def_fnr s �r r zBasicKeyring.__init__0 sk �� �
�l�D�!�!�*�*�,�,�,���
�����i�1�3�3�T�^�5M�N�N��!�+�V���%���+����� c �n � t j � t j � � | j � � S )z�
The path to the file where passwords are stored. This property
may be overridden by the subclass or at the instance level.
)r r r r r r$ �r"