HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //usr/local/lib/python3.9/site-packages/celery/utils/__pycache__/deprecated.cpython-39.pyc
a

X>h$�@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 �

�
�