관리-도구
편집 파일: file_cache.cpython-311.pyc
� �Re9 � � � d dl Z d dlZd dlmZ ddlmZ ddlmZ e n# e $ r e efZY nw xY wd� Z G d� de� � Z d � ZdS ) � N)�dedent� )� BaseCache)�CacheControllerc �� � t j }|t j t j z z }t t d� � r|t j z }t t d� � r|t j z } t j | � � n# t t f$ r Y nw xY wt j | ||� � } t j |d� � S # t j |� � � xY w)N� O_NOFOLLOW�O_BINARY�wb) �os�O_WRONLY�O_CREAT�O_EXCL�hasattrr r �remove�IOError�OSError�open�fdopen�close)�filename�fmode�flags�fds ��/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py�_secure_open_writer s� � ��K�E� �R�Z�"�)� #�#�E� �r�<� � � � ����� �r�:��� � ����� � � �(�������W�� � � ��� ���� ���5�%� (� (�B���y��T�"�"�"��� ������ ���s �2B �B�B�5C � C!c �N � e Zd Z dd�Zed� � � Zd� Zd� Zd � Zd � Z dS )� FileCacheF� � Nc � � |�|�t d� � � ddlm} ddlm} |r|}n1|�|}n,# t $ r t d� � } t | � � �w xY w|| _ || _ || _ || _ || _ d S )Nz/Cannot use use_dir_lock and lock_class togetherr )�LockFile)� MkdirLockFilez� NOTE: In order to use the FileCache you must have lockfile installed. You can install it via pip: pip install lockfile )� ValueError�lockfiler! �lockfile.mkdirlockfiler"