| Server IP : 146.190.157.162 / Your IP : 216.73.216.200 Web Server : Apache System : Linux ubuntu-s-2vcpu-4gb-amd-sfo3-01-KIT-DIGITAL 6.5.0-44-generic #44-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 7 15:10:09 UTC 2024 x86_64 User : businessweek ( 639) PHP Version : 8.2.10-2ubuntu2.2 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_signal,pcntl_signal_dispatch,pcntl_getpriority,pcntl_setpriority,dl,putenv,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/PIL/__pycache__/ |
Upload File : |
�
D#�d� � �: � d dl mZ d dlZddlmZ dddd�dd�ZdS )� )�annotationsN� )�__version__F)�action�plural�
deprecated�str�when�
int | None�replacement�
str | Noner r �bool�return�Nonec � � |rdnd}|�d}nh|t t j d� � d � � k r| � d|� d�}t |� � �|d k rd
}nd|� dt � d
�}t |� � �|r|rd}t |� � �|rd|� d�}n|rd|� d� � � d�}nd}t j | � d|� d|� |� �t d�� � 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)r r
r r r �is_�removed�msgs �0/usr/lib/python3/dist-packages/PIL/_deprecate.py� deprecater( sF � �B �
#�%�%�t�C��|�$���
��[�&�s�+�+�A�.�/�/� /� /��E�E�c�E�E�E���3����
����*���D�$�D�D��D�D�D����o�o��� �v� �:����o�o��� �0�+�0�0�0��� � �+�f�m�m�C�(�(�+�+�+������M��Q�Q��Q�Q��Q��Q�Q���� � � � � � )N)r r r
r r r
r r
r r r r )�
__future__r r! r r r( � r) r'