
    Bwg                    N    d dl mZ d dlZddlmZ 	 dddd	 	 	 	 	 	 	 	 	 	 	 d	dZy)
    )annotationsN   )__version__F)actionpluralc               |   |rdnd}|d}nW|t        t        j                  d      d         k  r|  d| d}t        |      |d	k(  rd
}nd| dt         d}t        |      |r|rd}t        |      |rd| d}n|rd|j                  d       d}nd}t        j                  |  d| d| | t        d       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isNza future version.r    z" deprecated and should be removed.   zPillow 12 (2025-10-15)zUnknown 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replacementr   r   is_removedmsgs           E/var/www/horilla/myenv/lib/python3.12/site-packages/PIL/_deprecate.py	deprecater"      s    B %tC|$	[&&s+A./	/AcU"DE3	*)$y
!Dov:o+i0	fmmC()+MM,au?yQ    )N)r   strr   z
int | Noner   
str | Noner   r%   r   boolreturnNone)
__future__r   r   r   r   r"    r#   r!   <module>r+      s]    "   #=
 ==
= =
 = = 
=r#   