관리-도구
편집 파일: _cmd.cpython-39.pyc
a ����[��f����������������������@���sx���d�dl�Z�d�dlmZ�d�dlmZ�d�dlmZ�d�dlmZ�d�dl m Z �dd��Zd d ��Zdd��Z dd d�Zedkrte���dS�)�����N)�requests)�CacheControlAdapter)� DictCache)�logger)�ArgumentParserc������������������C���s"���t��tj��t���}�t��|���d�S�)N)r���ZsetLevel�logging�DEBUGZ StreamHandlerZ addHandler)Zhandler��r ����A/usr/lib/python3.9/site-packages/pip/_vendor/cachecontrol/_cmd.py� setup_logging���s����r���c������������������C���s>���t�t��dd�d�d�}�t���}|�d|���|�d|���|�j|_|S�)NT)Zcache_etagsZ serializerZ heuristiczhttp://zhttps://)r���r���r���ZSessionZmountZ controller�cache_controller)Zadapter�sessr ���r ���r ����get_session���s���� �r���c������������������C���s���t���}�|�jddd��|����S�)N�urlzThe URL to try and cache)�help)r����add_argument� parse_args)�parserr ���r ���r ����get_args���s����r���c�����������������C���sT���t���}�t��}|�|�j�}t���|j�|j|j��|j� |j�rHt d��nt d��d�S�)NzCached!z Not cached :()r���r����getr���r���r���Zcache_responseZrequest�rawZcached_request�print)�argsr ���Zrespr ���r ���r ����main$���s���� r����__main__)N)r���Zpip._vendorr���Z pip._vendor.cachecontrol.adapterr���Zpip._vendor.cachecontrol.cacher���Z#pip._vendor.cachecontrol.controllerr����argparser���r���r���r���r����__name__r ���r ���r ���r ����<module>���s���