
    (ph	                         S r SSKJr  SSKrSSKr\R
                  " \5      rSr\R                  R                  \R                  R                  \R                  R                  \5      5      S5      rS rS rg)z+Caching utility for the discovery document.    )absolute_importNiQ 	documentsc                      S[         R                  ;   a   SSKJn   U R                  $  SSKJn  UR                  $ ! [
         a     Nf = f! [
         a    [        R                  SSS9   gf = f)	zDetects an appropriate cache module and returns it.

Returns:
  googleapiclient.discovery_cache.base.Cache, a cache object which
  is auto detected, or None if no cache object is available.
GAE_ENV   )appengine_memcache)
file_cachez4file_cache is only supported with oauth2client<4.0.0F)exc_infoN)	osenviron r   cache	Exceptionr	   LOGGERinfo)r   r	   s     [/var/www/html/venv/lib/python3.13/site-packages/googleapiclient/discovery_cache/__init__.py
autodetectr      sw     BJJ	,%+++   		  BU 	 	
 	s    ; A 
AAA,+A,c                    SnSR                  X5      n [        [        R                  R	                  [
        U5      S5       nUR                  5       nSSS5        U$ ! , (       d  f       U$ = f! [         a     U$ f = f)a~  Retrieves the discovery document from the directory defined in
DISCOVERY_DOC_DIR corresponding to the serviceName and version provided.

Args:
    serviceName: string, name of the service.
    version: string, the version of the service.

Returns:
    A string containing the contents of the JSON discovery document,
    otherwise None if the JSON discovery document was not found.
Nz
{}.{}.jsonr)formatopenr   pathjoinDISCOVERY_DOC_DIRreadFileNotFoundError)serviceNameversioncontentdoc_namefs        r   get_static_docr"   7   s{     G"";8H"'',,0(;SAQffhG B N BA N	  N	s/   .A0 AA0 
A-(A0 -A0 0
A>=A>)__doc__
__future__r   loggingr   	getLogger__name__r   DISCOVERY_DOC_MAX_AGEr   r   dirnamerealpath__file__r   r   r"        r   <module>r.      sg    2 &  				8	$$ GGLLGGOOBGG$$X./ 
2r-   