
    OjQ
                     v    S r SSKrSSKJr  SSKJr  S\S\4S jrS\R                  S\SS4S	 jrS
\S\4S jr	g)z-Helper functions for commonly used utilities.    N)Any)_helpersresponsereturnc                 d   #     U R                  5       I Sh  vN nU$  N! [         a     gf = f7f)a  
Parses an async response, attempting to decode JSON.

Args:
    response: The response object to parse. This can be any type, but
        it is expected to have a `json()` method if it contains JSON.

Returns:
    The parsed response. If the response contains valid JSON, the
    decoded JSON object (e.g., a dictionary) is returned.
    If the response does not have a `json()` method or if the JSON
    decoding fails, None is returned.
N)json	Exception)r   json_responses     Z/var/www/html/leaf-doctor-v1/venv/lib/python3.13/site-packages/google/auth/aio/_helpers.py_parse_response_asyncr      s6     &mmo- .  s(   0    0  
-0-0loggerc                 t   #    [         R                  " U 5      (       a  Sn[         R                  " X5        gg7f)z
Logs an Async HTTP response at the DEBUG level if logging is enabled.

Args:
    logger: The logging.Logger instance to use.
    response: The HTTP response object to log.
N)r   is_logging_enabled_response_log_base)r   r   r
   s      r   response_log_asyncr   .   s2      ""6** ##F: +s   68	connectorc                 `    [        U SS 5      nUb  U$ [        U SS 5      nU(       a  US   S   $ g )N_local_addr_local_addr_infosr      )getattr)r   
local_addrlocal_addr_infoss      r   _get_local_addrr   @   sB    M48Jy*=tD"1%%    )
__doc__loggingtypingr   google.authr   r   Loggerr   r    r   r   <module>r"      sW    4    # # .;W^^ ;s ;t ;$s s r   