Yohohohohohooho | Sanrei Aya
Sanrei Aya


Server : LiteSpeed
System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : elvh3918 ( 1528)
PHP Version : 8.2.31
Disable Function : mail
Directory :  /usr/local/lib/python3.9/site-packages/celery/utils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/local/lib/python3.9/site-packages/celery/utils/__pycache__/deprecated.cpython-39.pyc
a

��Sh$�@sddZddlZddlmZddlmZmZdZdZdZ	dd	d
�Z
ddd�Zdd
d�ZGdd�d�Z
dS)zDeprecation utilities.�N��wraps)�CDeprecationWarning�CPendingDeprecationWarning)�Callable�Property�warnz�
    {description} is scheduled for deprecation in     version {deprecation} and removal in version v{removal}.     {alternative}
zc
    {description} is deprecated and scheduled for removal in
    version {removal}. {alternative}
�cCsR||||d�}|dur,ttjfi|���}nttjfi|���}tj||d�dS)zWarn of (pending) deprecation.)�description�deprecation�removal�alternativeN)�
stacklevel)r�PENDING_DEPRECATION_FMT�formatr�DEPRECATION_FMT�warningsr)r
rrr
r�ctx�w�r�A/usr/local/lib/python3.9/site-packages/celery/utils/deprecated.pyrs�rcs����fdd�}|S)aDecorator for deprecated functions.

    A deprecation warning will be emitted when the function is called.

    Arguments:
        deprecation (str): Version that marks first deprecation, if this
            argument isn't set a ``PendingDeprecationWarning`` will be
            emitted instead.
        removal (str): Future version when this feature will be removed.
        alternative (str): Instructions for an alternative solution (if any).
        description (str): Description of what's being deprecated.
    cs t�������fdd��}|S)Ncs4ddlm}t�p|�����dd��|i|��S)N�)�qualname�)r
rrr
r)Zimportsrr)�args�kwargsr)r
rr
�funrrr�__inner4s�z)Callable.<locals>._inner.<locals>.__innerr)rr�r
rr
r�rr�_inner2szCallable.<locals>._innerr�rrr
r
r rrrr$srcs����fdd�}|S)z$Decorator for deprecated properties.cst|����p|jd�S)N)rrr
r
)�_deprecated_property�__name__rrrrr Ds
�zProperty.<locals>._innerrr!rrrrAsrc@s@eZdZddd�Zddd�Zdd�Zdd	�Zd
d�Zdd
�ZdS)r"NcKsF||_||_||_|j|j|j|_|_|_||_|j�dd�dS)Nrr)�_deprecated_property__get�_deprecated_property__set�_deprecated_property__delr#�
__module__�__doc__�	depreinfo�
setdefault)�self�fget�fset�fdel�docr)rrr�__init__Ms�z_deprecated_property.__init__cCs&|dur|Stfi|j��|�|�S�N)rr)r$)r+�obj�typerrr�__get__Wsz_deprecated_property.__get__cCs>|dur|S|jdurtd��tfi|j��|�||�dS)Nzcannot set attribute)r%�AttributeErrorrr))r+r2�valuerrr�__set__]s
z_deprecated_property.__set__cCs<|dur|S|jdurtd��tfi|j��|�|�dS)Nzcannot delete attribute)r&r5rr))r+r2rrr�
__delete__es
z_deprecated_property.__delete__cCs|j|j||jfi|j��Sr1)�	__class__r$r&r))r+r-rrr�settermsz_deprecated_property.settercCs|j|j|j|fi|j��Sr1)r9r$r%r))r+r.rrr�deleterpsz_deprecated_property.deleter)NNNN)N)	r#r'�__qualname__r0r4r7r8r:r;rrrrr"Ks


r")NNNNr	)NNNN)NNNN)r(rZ
vine.utilsrZcelery.exceptionsrr�__all__rrrrrr"rrrr�<module>s �

�
�


Yohohohohohooho | Sanrei Aya