관리-도구
편집 파일: _cmd.cpython-311.pyc
� �Re � � � d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dl m Z d� Zd� Zd � Z dd �Zedk r e� � dS dS ) � N)�requests)�CacheControlAdapter)� DictCache)�logger)�ArgumentParserc � � t j t j � � t j � � } t j | � � d S �N)r �setLevel�logging�DEBUG� StreamHandler� addHandler)�handlers ��/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_vendor/cachecontrol/_cmd.py� setup_loggingr s9 � � �O�G�M�"�"�"��#�%�%�G� ��g������ c �� � 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 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 �V � t � � } t � � }|� | j � � }t � � |j � |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 �resps r �mainr. $ s� � ��:�:�D��=�=�D� �8�8�D�H���D� �O�O�O� ��(�(���t�x�@�@�@� ��+�+�D�L�9�9� � �i������ �o�����r �__main__r )r �pip._vendorr � pip._vendor.cachecontrol.adapterr �pip._vendor.cachecontrol.cacher �#pip._vendor.cachecontrol.controllerr �argparser r r r$ r. �__name__� r r �<module>r7 s� �� ���� � � � � � � @� @� @� @� @� @� 4� 4� 4� 4� 4� 4� 6� 6� 6� 6� 6� 6� #� #� #� #� #� #�� � � � � �� � �� � � �( �z����D�F�F�F�F�F� �r