o
    Ďi                     @   s   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d ZnejZd	d
 Zdd Zdd ZdS )    N)PythonDeprecationWarning)TransferConfigaUNSET_DEFAULTwinc              
   C   sR   zt | W n ty  } z|jtjks W Y d }~nd }~ww t | | d S )N)osremoveOSErrorerrnoENOENTrename)current_filenamenew_filenamee r   H/home/jeff/fluffinator/venv/lib/python3.10/site-packages/boto3/compat.pyrename_file&   s   r   c                   C   s   t jddtd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   r   r   r   "filter_python_deprecation_warnings5   s   
r   c                  C   sd   ddd} d| i}t jdd }||v r0|| }d|d |d	 |d
 |d }t|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warningr   r   r   _warn_deprecated_pythonB   s   	r)   c                 C   s    t | dot| jtot| jv S )Nmode)hasattr
isinstancer*   str_APPEND_MODE_CHAR)fileobjr   r   r   is_append_mode\   s
   

r0   )r    r   r
   socketr   boto3.exceptionsr   s3transfer.managerr   ConnectionErrorSOCKET_ERRORr.   collections.abcabccollections_abcr+   TRANSFER_CONFIG_SUPPORTS_CRTplatform
startswithr   r   r   r)   r0   r   r   r   r   <module>   s"   

