|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /opt/cppython/lib/python3.8/site-packages/boto3/__pycache__/ |
U
Q��gG � @ st d dl Z d dlZd dlZd dlZd dlZd dlmZ eZd dl m
Z e j�
d�rZdd� ZnejZdd� Zdd � ZdS )
� N)�PythonDeprecationWarning�winc
C sP zt �|� W n0 tk
r> } z|jtjks.� W 5 d }~X Y nX t �| |� d S )N)�os�remove�OSError�errno�ENOENT�rename)Zcurrent_filenameZnew_filename�e� r �9/opt/cppython/lib/python3.8/site-packages/boto3/compat.py�rename_file s r
c C s t jddtdd� dS )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_warnings. s �r c C s` ddd�} d| i}t jdd� }||kr\|| }d�|d |d |d
|d �}t�|t� dS )z=Use this template for future deprecation campaigns as needed.zDecember 13, 2023z\https://aws.amazon.com/blogs/developer/python-support-policy-updates-for-aws-sdks-and-tools/)�date� blog_link)� � N� z�Boto3 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 )Zpy_37_paramsZdeprecated_versions�
py_version�params�warningr r r �_warn_deprecated_python; s"