
    	]j0                     $    d dl Z d dlmZ d Zd Zy)    N)
exceptionsc                  T    t         j                  dk7  rt        j                  d      y)a1  Check if the C-accelerated version of google-crc32c is available.

    If not, raise an error to prevent silent performance degradation.

    raises google.api_core.exceptions.FailedPrecondition: If the C extension is not available.
    returns: True if the C extension is available.
    rtype: bool

    czThe google-crc32c package is not installed with C support. C extension is required for faster data integrity checks.For more information, see https://github.com/googleapis/python-crc32c.N)google_crc32cimplementationr   FailedPrecondition     M/root/env/lib/python3.12/site-packages/google/cloud/storage/asyncio/_utils.pyraise_if_no_fast_crc32cr      s0     ##s*++U
 	
 +r
   c                 Z    t        |d      r|j                  |j                  | _        yyy)zLUpdate the write_handle attribute of an object if it exists in the response.write_handleN)hasattrr   )objresponses     r   update_write_handle_if_existsr   &   s.    x(X-B-B-N#00 .O(r
   )r   google.api_corer   r   r   r	   r
   r   <module>r      s     &
$1r
   