�
K�gG � � � d dl Z d dlZd dlZd dlZd dlZd dlmZ eZd dl m
Z e j �
d� � rd� Znej Zd� Zd� ZdS )� N)�PythonDeprecationWarning�winc � � t j |� � n-# t $ r }|j t j k s� Y d }~nd }~ww xY wt j | |� � d S )N)�os�remove�OSError�errno�ENOENT�rename)�current_filename�new_filename�es �\/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/boto3/compat.py�rename_filer sy � � ��I�l�#�#�#�#��� � � ��7�e�l�*�*�
� +�*�*�*�*����� ���� � �"�L�1�1�1�1�1s � �
A�<�Ac �@ � t j ddt d�� � 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 �"filter_python_deprecation_warningsr . s4 � �
���9�)�!� � � � � � r c �� � ddd�} d| i}t j dd� }||v rT|| }d� |d |d |d
|d � � }t j |t
� � dS 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 )�py_37_params�deprecated_versions�
py_version�params�warnings r �_warn_deprecated_pythonr+ ; s� � � $�
D�� �L� ���� �!�"�1�"�%�J��(�(�(�$�Z�0��
<� �&��A��
�1�
�v�f�~�v�k�?R�
S�
S� � �
�g�7�8�8�8�8�8� )�(r )r"