Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
opt
/
alt
/
python38
/
lib
/
python3.8
/
site-packages
/
pip
/
_internal
/
__pycache__
[ HOME ]
Exec
Submit
File Name : self_outdated_check.cpython-38.pyc
U ʗReT � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl m Z d dlmZm Z mZmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d d lmZ d d lmZ d dlm Z d dl!m"Z" d d l#m$Z$ d dl%m&Z& d dl'm(Z(m)Z) d dl*m+Z+m,Z,m-Z- d dl.m/Z/ dZ0e�1e2�Z3e4e4d�dd�Z5G dd� d�Z6e G dd� d��Z7e4e8d�dd�Z9e$ej:e4d�dd�Z;e6e j e e g e4f ee7 d �d!d"�Z<e$ej:dd�d#d$�Z=dS )%� N)� dataclass)�Any�Callable�Dict�Optional)�parse)�Group)�escape)�Text)� LinkCollector)� PackageFinder)�get_default_environment)�DistributionVersion)�SelectionPreferences)� PipSession)�WINDOWS)� get_best_invocation_for_this_pip�#get_best_invocation_for_this_python)�adjacent_tmp_file�check_path_owner�replace)� ensure_dirz%Y-%m-%dT%H:%M:%SZ)�key�returnc C s | � � }t�|��� }|S �N)�encode�hashlib�sha224� hexdigest)r � key_bytes�name� r! ��/builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_internal/self_outdated_check.py�_get_statefile_name% s r# c @ sX e Zd Zedd�dd�Zeed�dd��Zejee d�d d �Z eejdd�dd �Z dS )�SelfCheckStateN)� cache_dirr c C sr i | _ d | _|rntj�|dt| j��| _z*t| jdd��}t� |�| _ W 5 Q R X W n t ttfk rl Y nX d S )N� selfcheckzutf-8)�encoding) �_state�_statefile_path�os�path�joinr# r �open�json�load�OSError� ValueError�KeyError)�selfr% � statefiler! r! r"