zmc
2023-12-22 9fdbf60165db0400c2e8e6be2dc6e88138ac719a
1
2
3
4
5
6
7
8
9
10
11
12
13
U
H=®dã@sxddlZddlmZddlmZddlmZddlmZddl    m
Z
dd„Z d    d
„Z d d „Z dd d„ZedkrteƒdS)éN)Úrequests)ÚCacheControlAdapter)Ú    DictCache)Úlogger)ÚArgumentParsercCs"t tj¡t ¡}t |¡dS)N)rÚsetLevelÚloggingÚDEBUGÚ StreamHandlerÚ
addHandler)Úhandler©r úTD:\z\workplace\VsCode\pyvenv\venv\Lib\site-packages\pip/_vendor/cachecontrol/_cmd.pyÚ setup_logging s rcCs>ttƒdddd}t ¡}| d|¡| d|¡|j|_|S)NT)Ú cache_etagsÚ
serializerÚ    heuristiczhttp://zhttps://)rrrÚSessionÚmountÚ
controllerÚcache_controller)ÚadapterÚsessr r rÚ get_sessionsÿ  rcCstƒ}|jddd| ¡S)NÚurlzThe URL to try and cache)Úhelp)rÚ add_argumentÚ
parse_args)Úparserr r rÚget_argssrcCsTtƒ}tƒ}| |j¡}tƒ|j |j|j¡|j     |j¡rHt
dƒnt
dƒdS)NzCached!z Not cached :() rrÚgetrrrÚcache_responseÚrequestÚrawÚcached_requestÚprint)ÚargsrÚrespr r rÚmain$s 
r(Ú__main__)N)rÚ pip._vendorrZ pip._vendor.cachecontrol.adapterrZpip._vendor.cachecontrol.cacherZ#pip._vendor.cachecontrol.controllerrÚargparserrrrr(Ú__name__r r r rÚ<module>s