
    "i                         S SK r S SKrS SKrS SKrS SKrS SKJr  S SKJr  \	r
SrS SKJr  \" \S5      r\ R"                  R%                  S5      (       a  S rO\R(                  rS rS	 rS
 rg)    N)PythonDeprecationWarning)TransferConfigaUNSET_DEFAULTwinc                      [         R                  " U5        [         R
                  " X5        g ! [         a)  nUR                  [        R                  :X  d  e  S nANES nAff = f)N)osremoveOSErrorerrnoENOENTrename)current_filenamenew_filenamees      K/var/www/html/ai-image-ml/venv/lib/python3.13/site-packages/boto3/compat.pyrename_filer   &   sN    	IIl# 			"1  	77ell*
  +	s   / 
A"AA"c                  :    [         R                  " SS[        SS9  g)z
Invoking this filter acknowledges your runtime will soon be deprecated
at which time you will stop receiving all updates to your client.
ignorez'.*Boto3 will no longer support Python.*z.*boto3\.compat)messagecategorymoduleN)warningsfilterwarningsr        r   "filter_python_deprecation_warningsr   5   s    
 9)!	r   c                      SSS.n SU 0n[         R                  SS nX!;   a@  X   nSR                  US   US	   US
   US   5      n[        R                  " U[
        5        gg)z=Use this template for future deprecation campaigns as needed.zApril 29, 2026z\https://aws.amazon.com/blogs/developer/python-support-policy-updates-for-aws-sdks-and-tools/)date	blog_link)   	   N   zBoto3 will no longer support Python {}.{} starting {}. To continue receiving service updates, bug fixes, and security updates please upgrade to Python 3.10 or later. More information can be found here: {}r      r   r    )sysversion_infoformatr   warnr   )py_39_paramsdeprecated_versions
py_versionparamswarnings        r   _warn_deprecated_pythonr.   B   s     !DL 	 !!"1%J($0< &A
1vf~vk?R
S 	 	g78 )r   c                     [        U S5      =(       a4    [        U R                  [        5      =(       a    [        U R                  ;   $ )Nmode)hasattr
isinstancer0   str_APPEND_MODE_CHAR)fileobjs    r   is_append_moder6   \   s5      	*7<<%	*W\\)r   )r%   r	   r   socketr   boto3.exceptionsr   s3transfer.managerr   ConnectionErrorSOCKET_ERRORr4   collections.abcabccollections_abcr1   TRANSFER_CONFIG_SUPPORTS_CRTplatform
startswithr   r   r   r.   r6   r   r   r   <module>rB      sq     	    5 -   )  '~G  <<5!!
2 ))K
94r   