Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
_deprecate.cpython-313.pyc39 linesDownload Raw Back to __pycache__
1�

2v�j:��Z�SSKJr SSKrSSKJr S	SSSS.S3Sjjjrg)�)�annotationsN�)�__version__F�)�action�plural�4stacklevelc���U(aSOSnUcSnOcU[[R"S5S5::aUSUS3n[U5eUS	:XaS5nO!US:XaSnOS
US[S3n[U5eU(aU(a
Sn[U5eU(aSUS3nOU(aSUR
S5S3nOSn[R"USUSUU3[US9 g)a�6Deprecations helper.7 8:param deprecated: Name of thing to be deprecated.9:param when: Pillow major version to be removed in.10:param replacement: Name of replacement.11:param action: Instead of "replacement", give a custom call to action12    e.g. "Upgrade to new thing".13:param plural: if the deprecated thing is plural, needing "are" instead of "is".14 15Usually of the form:16 17    "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd).18    Use [replacement] instead."19 20You can leave out the replacement sentence:21 22    "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd)"23 24Or with another call to action:25 26    "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd).27    [action]."28�are�isNza future version�.r� z" deprecated and should be removed.�
zPillow 13 (2026-10-15)�zPillow 14 (2027-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 )r	)29�intr�split�RuntimeError�__name__�30ValueError�rstrip�warnings�warn�DeprecationWarning)	�31deprecated�when�replacementrrr	�is_�removed�msgs	         �TD:\code\apps\devtools\python\user_packages\Python313\site-packages\PIL/_deprecate.py�	deprecater#s���D�%�t�C��|�$��	
��[�&�&�s�+�A�.�/�	/���A�c�U�"D�E���3���	
���*��	
���*��)�$��y��32�!�D����o���v�:����o����+��i�0��	��f�m�m�C�(�)��+�����M�M��,�a��u�?��y���Q����)N)r�strrz33int | Noner�34str | Nonerr&r�boolr	r�return�None)�35__future__rrrrr#�r$r"�<module>r,ss��"���#�@�36���@��@�37�@��@�38
�@�
�
@��@�39�@r$
codekingpro/portable-devtools · Team Ai