� ��^i���ddlZddlmZddlmZddlmZddlmZddl m Z d�Z d�Z d �Z d d �Zed kr e��dSdS) �N)�requests)�CacheControlAdapter)� DictCache)�logger)�ArgumentParserc��tjtj��tj��}tj|��dS�N)r�setLevel�logging�DEBUG� StreamHandler� addHandler)�handlers ��/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-4.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���tt��ddd���}tj��}|�d|��|�d|��|j|_|S)NT)� cache_etags� serializer� heuristiczhttp://zhttps://)rrr�Session�mount� controller�cache_controller)�adapter�sesss r� get_sessionrsk��!�� � ��$�$����G� � � � �D��J�J�y�'�"�"�"��J�J�z�7�#�#�#�#�.�D�� �Krc�t�t��}|�dd���|���S)N�urlzThe URL to try and cache)�help)r� add_argument� parse_args)�parsers r�get_argsr$s9�� � � �F� ����$>��?�?�?� � � � � �rc�V�t��}t��}|�|j��}t ��|j�|j|j��|j� |j��rtd��dStd��dS)NzCached!z Not cached :() r$r�getrrr�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�argparserrrr$r.�__name__�rr�r7s������� � � � � � �@�@�@�@�@�@�4�4�4�4�4�4�6�6�6�6�6�6�#�#�#�#�#�#���� � � ���� ����( �z����D�F�F�F�F�F��r