
     h                         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 eZdZ	d dl
mZ e j                  j                  d      rd Znej                   Zd Zd Zd Zy)	    N)PythonDeprecationWarningawinc                     	 t        j                  |       t        j
                  | |       y # t        $ r(}|j                  t        j                  k(  s Y d }~Cd }~ww xY w)N)osremoveOSErrorerrnoENOENTrename)current_filenamenew_filenamees      h/home/developers/rajanand/mypropertyqr-fmb-refixing-v2/venv/lib/python3.12/site-packages/boto3/compat.pyrename_filer   !   sP    	IIl# 			"L1  	77ell*
  +	s   . 	AAAc                  >    t        j                  ddt        d       y)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   0   s    
 9)!	r   c                      ddd} d| i}t         j                  dd }||v r@||   }dj                  |d   |d	   |d
   |d         }t        j                  |t
               yy)z=Use this template for future deprecation campaigns as needed.zDecember 13, 2023z\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.8 or later. More information can be found here: {}r      r   r   )sysversion_infoformatr   warnr   )py_37_paramsdeprecated_versions
py_versionparamswarnings        r   _warn_deprecated_pythonr,   =   s     $DL 	 !!"1%J(($Z0< &A
1vf~vk?R
S 	 	g78 )r   c                 z    t        | d      xr. t        | j                  t              xr t        | j                  v S )Nmode)hasattr
isinstancer.   str_APPEND_MODE_CHAR)fileobjs    r   is_append_moder4   W   s5      	*7<<%	*W\\)r   )r#   r   r
   socketr   boto3.exceptionsr   ConnectionErrorSOCKET_ERRORr2   collections.abcabccollections_abcplatform
startswithr   r   r   r,   r4   r   r   r   <module>r>      s\     	    5   ) <<5!
2 ))K
94r   