
    tni                         d dl Z d dlZd dlZd dlZd dlZd dlmZ d dlmZ e	Z
dZd dlmZ  eed          Ze j                            d          rd Znej        Zd Zd	 Zd
 ZdS )    N)PythonDeprecationWarning)TransferConfigaUNSET_DEFAULTwinc                     	 t          j        |           n-# t          $ r }|j        t          j        k    s Y d }~nd }~ww xY wt          j        | |           d S )N)osremoveOSErrorerrnoENOENTrename)current_filenamenew_filenamees      I/var/www/html/gpu-tools/venv/lib/python3.11/site-packages/boto3/compat.pyrename_filer   &   sy    	Il#### 	 	 	7el**
  +****	 		"L11111s    
A<Ac                  @    t          j        ddt          d           dS )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   s4    
 9)!	     r   c                      ddd} d| i}t           j        dd         }||v rT||         }d                    |d         |d	         |d
         |d                   }t          j        |t
                     dS dS )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((($Z0< &A
1vf~vk?R
S
S 	 	g788888 )(r   c                 r    t          | d          o't          | j        t                    ot          | j        v S )Nmode)hasattr
isinstancer0   str_APPEND_MODE_CHAR)fileobjs    r   is_append_moder6   \   s7       	*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      s    


 				    5 5 5 5 5 5 - - - - - -   ) ) ) ) ) )  'w~GG  <5!! 
2 
2 
2 
2 )K
 
 
9 9 94    r   