VQs
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 setLevelloggingDEBUG
StreamHandler
addHandler)handlers /builddir/build/BUILDROOT/alt-python311-pip-21.3.1-4.el9.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_vendor/cachecontrol/_cmd.py
setup_loggingr s9
OGM"""#%%G
g c t t dd d } t j }| d| | d| | j |_ |S )NT)cache_etags
serializer heuristiczhttp://zhttps://)r r r Sessionmount
controllercache_controller)adaptersesss r get_sessionr sk !$$ G DJJy'"""JJz7####.DKr c t t } | dd | S )NurlzThe 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_responserequestrawcached_requestprint)argsr resps r mainr. $ s ::D==D 88DHD OOO ((tx@@@ ++DL99
i
or __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