
    q"h                        S SK Jr  S SKrS SKJr  S SKJr  S SKJr  S SK	J
r
  S SKJr  S SKJr  \(       a  S S	KJr  S S
KJr  SS jrSS jrSS jrSS jr\S:X  a  \" 5         gg)    )annotationsN)ArgumentParser)TYPE_CHECKING)requests)CacheControlAdapter)	DictCache)logger)	Namespace)CacheControllerc                     [         R                  " [        R                  5        [        R                  " 5       n [         R
                  " U 5        g )N)r	   setLevelloggingDEBUGStreamHandler
addHandler)handlers    O/var/www/html/env/lib/python3.13/site-packages/pip/_vendor/cachecontrol/_cmd.pysetup_loggingr      s.    
OOGMM"##%G
g    c                     [        [        5       SS S S9n [        R                  " 5       nUR	                  SU 5        UR	                  SU 5        U R
                  Ul        U$ )NT)cache_etags
serializer	heuristiczhttp://zhttps://)r   r   r   Sessionmount
controllercache_controller)adaptersesss     r   get_sessionr       sV    !$$G DJJy'"JJz7##..DKr   c                 V    [        5       n U R                  SSS9  U R                  5       $ )NurlzThe URL to try and cache)help)r   add_argument
parse_args)parsers    r   get_argsr'   (   s-    F
$>?r   c                 H   [        5       n [        5       nUR                  U R                  5      n[	        5         UR
                  nUR                  UR                  UR                  5        UR                  UR                  5      (       a  [        S5        g [        S5        g )NzCached!zNot cached :()r'   r    getr"   r   r   cache_responserequestrawcached_requestprint)argsr   respr   s       r   mainr1   .   s|    :D=D 88DHHD O 	  ##DLL$((; &&t||44ior   __main__)returnNone)r3   zrequests.Session)r3   r
   )
__future__r   r   argparser   typingr   pip._vendorr    pip._vendor.cachecontrol.adapterr   pip._vendor.cachecontrol.cacher   #pip._vendor.cachecontrol.controllerr	   r
   r   r   r    r'   r1   __name__ r   r   <module>r>      sP    #  #     @ 4 6"C	. zF r   