Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.12/site-packages/PIL/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.12/site-packages/PIL/__pycache__/_deprecate.cpython-312.pyc

�

&ٜg���N�ddlmZddlZddlmZ	dddd�											d	d�Zy)
�)�annotationsN�)�__version__F)�action�pluralc�|�|rdnd}|�d}nW|ttjd�d�kr|�d|�d�}t|��|d	k(rd
}nd|�dt�d
�}t|��|r|r
d}t|��|rd|�d�}n|rd|j
d��d�}nd}tj|�d|�d|�|��td��y)a.
    Deprecations helper.

    :param deprecated: Name of thing to be deprecated.
    :param when: Pillow major version to be removed in.
    :param replacement: Name of replacement.
    :param action: Instead of "replacement", give a custom call to action
        e.g. "Upgrade to new thing".
    :param plural: if the deprecated thing is plural, needing "are" instead of "is".

    Usually of the form:

        "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd).
        Use [replacement] instead."

    You can leave out the replacement sentence:

        "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd)"

    Or with another call to action:

        "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd).
        [action]."
    �are�isNza future version�.r� z" deprecated and should be removed.�zPillow 12 (2025-10-15)zUnknown removal version: z	. Update �?z*Use only one of 'replacement' and 'action'z. Use z	 instead.z. �z# deprecated and will be removed in �)�
stacklevel)
�intr�split�RuntimeError�__name__�
ValueError�rstrip�warnings�warn�DeprecationWarning)�
deprecated�when�replacementrr�is_�removed�msgs        �9/usr/local/lib/python3.12/site-packages/PIL/_deprecate.py�	deprecater"s���B�%�t�C��|�$��	
��[�&�&�s�+�A�.�/�	/���A�c�U�"D�E���3���	
���*��)�$��y��
�!�D����o���v�:����o����+��i�0��	��f�m�m�C�(�)��+�����M�M��,�a��u�?��y���Q����)N)r�strrz
int | Noner�
str | Nonerr%r�bool�return�None)�
__future__rrrrr"�r#r!�<module>r+s]��"���#�=�
��
=��=�
�=��=�

�=�
�
=�
�=r#

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists