관리-도구
편집 파일: _cmd.cpython-311.pyc
� �܋f� � �� � d dl mZ d dlZd dlmZ d dlmZ d dlmZ d dl m Z d dlmZ d dl mZ erd d lmZ d d l mZ dd �Zdd�Zdd�Zdd�Zedk r e� � dS dS )� )�annotationsN)�ArgumentParser)� TYPE_CHECKING)�requests)�CacheControlAdapter)� DictCache)�logger)� Namespace)�CacheController�return�Nonec � � t j t j � � t j � � } t j | � � d S )N)r �setLevel�logging�DEBUG� StreamHandler� addHandler)�handlers �n/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pip/_vendor/cachecontrol/_cmd.py� setup_loggingr s9 � � �O�G�M�"�"�"��#�%�%�G� ��g������ �requests.Sessionc �� � t t � � dd d �� � } t j � � }|� d| � � |� d| � � | j |_ |S )NT)�cache_etags� serializer� heuristiczhttp://zhttps://)r r r �Session�mount� controller�cache_controller)�adapter�sesss r �get_sessionr# sk � �!�����$�$�� � �G� ����D��J�J�y�'�"�"�"��J�J�z�7�#�#�#�#�.�D���Kr r c �t � t � � } | � dd�� � | � � � S )N�urlzThe URL to try and cache)�help)r �add_argument� parse_args)�parsers r �get_argsr* ( s9 � � � � �F� ����$>��?�?�?������r c �P � t � � } t � � }|� | j � � }t � � |j }|� |j |j � � |� |j � � rt d� � d S t d� � d S )NzCached!z Not cached :()r* r# �getr% r r �cache_response�request�raw�cached_request�print)�argsr"