Viewing File: /usr/lib/python3.6/site-packages/pip/_vendor/cachecontrol/__pycache__/_cmd.cpython-36.pyc

3

aj(@sxddlZddlmZddlmZddlmZddlmZddl	m
Z
ddZd	d
ZddZ
dd
dZedkrtedS)N)requests)CacheControlAdapter)	DictCache)logger)ArgumentParsercCs"tjtjtj}tj|dS)N)rZsetLevelloggingDEBUGZ
StreamHandlerZ
addHandler)Zhandlerr	/usr/lib/python3.6/_cmd.py
setup_loggingsrcCs>ttdddd}tj}|jd||jd||j|_|S)NT)Zcache_etagsZ
serializerZ	heuristiczhttp://zhttps://)rrrZSessionZmountZ
controllercache_controller)Zadaptersessr	r	r
get_sessionsrcCst}|jddd|jS)NurlzThe URL to try and cache)help)radd_argument
parse_args)parserr	r	r
get_args!srcCsTt}t}|j|j}t|jj|j|j|jj	|jrHt
dnt
ddS)NzCached!z
Not cached :()rrgetrrrZcache_responseZrequestrawZcached_requestprint)argsr
Zrespr	r	r
main's
r__main__)N)rZpip._vendorrZ pip._vendor.cachecontrol.adapterrZpip._vendor.cachecontrol.cacherZ#pip._vendor.cachecontrol.controllerrargparserrrrr__name__r	r	r	r
<module>s

Back to Directory File Manager