Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/stevedore/__pycache__/_cache.cpython-39.pyc
Ðазад
a n�h � @ s� d Z ddlZddlZddlZddlmZ ddlZddlZddl Z ddl Z ddlZ ddlZddl Z e �d�Zdd� Zdd� Zdd � Zd d� Zdd � ZG dd� d�Ze� ZejZejZejZdS )z3Use a cache layer in front of entry point scanning.� Nzstevedore._cachec C s~ t jdkr<tjdkr<t j�dd�p,t j�d�} t j�| d�S tjdkrRt j�d�S t j�dd�pjt j�d �} t j�| d �S dS )zpLocate a platform-appropriate cache directory to use. Does not ensure that the cache directory exists. �posix�darwin�XDG_CACHE_HOMENz~/.cachezpython-entrypointsz$~/Library/Caches/Python Entry Points�LOCALAPPDATAz~\AppData\LocalzPython Entry Points) �os�name�sys�platform�environ�get�path� expanduser�join)� base_path� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/stevedore/_cache.py�_get_cache_dir s � �r c C sP zt �| �}|jW S tyJ } z |jtjtjhvr6� W Y d }~n d }~0 0 dS )Ng �)r �stat�st_mtime�OSError�errno�ENOENT�ENOTDIR)r �s�errr r r � _get_mtime6 s r c C s t �d��| �S )N�f)�struct�Struct�pack)r r r r � _ftobytes@ s r c C s� g }t �� }|�tj�d�� |�tj�d�� | D ]�}t|�}|�|�d�� |�t|�� |� ||f� t �t� tj�|dd��t� tj�|dd���D ]8}t|�}|�|�d�� |�t|�� |� ||f� q�q4|�� |fS )z4Return a hash and the path settings that created it.zutf-8z*.dist-infozentry_points.txtz *.egg-info)�hashlib�sha256�updater � executable�encode�prefixr r �append� itertools�chain�glob�iglobr r r � hexdigest)r �paths�h�entry�mtimeZep_filer r r �_hash_settings_for_pathD s0 ���r1 c s� t �� � t� t�s&� fdd�� jD �� i } � �� D ]R\}}t� }g }|| |<