HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/env/lib/python3.10/site-packages/PIL/__pycache__/_deprecate.cpython-310.pyc
o

we��@s:ddlmZddlZddlmZ	dddd�ddd�ZdS)�)�annotationsN�)�__version__F)�action�plural�
deprecated�str�when�
int | None�replacement�
str | Nonerr�bool�return�NonecCs�|rdnd}|dur
d}n+|tt�d�d�kr$|�d|�d�}t|��|d	kr+d
}n
d|�dt�d
�}t|��|rB|rBd}t|��|rKd|�d�}n|rWd|�d��d�}nd}tj|�d|�d|�|��t	dd�dS)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 11 (2024-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)rr	rrr�is_�removed�msg�r%�G/home/arjun/projects/env/lib/python3.10/site-packages/PIL/_deprecate.py�	deprecates.!
�r')N)rrr	r
rrrrrr
rr)�
__future__rrrrr'r%r%r%r&�<module>s��