o
    �¨Êh|  ã                   @   s,   d dl Z d dlZG dd„ deƒZdd„ ZdS )é    Nc                   @   s   e Zd ZdZdS )ÚObsoleteExceptionz2 Base class for warnings about obsolete features. N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r   r   úF/var/www/html/env/lib/python3.10/site-packages/twilio/base/obsolete.pyr      s    r   c                    s   t  ˆ ¡‡ fdd„ƒ}|S )zšThis is a decorator which can be used to mark Client classes as
    obsolete. It will result in an error being emitted when the class is
    instantiated.c                     s   t d ˆ j¡ƒ‚)Nzi{} has been removed from this version of the library. Please refer to current documentation for guidance.)r   Úformatr   )ÚargsÚkwargs©Úfuncr   r   Únew_func   s   ýz!obsolete_client.<locals>.new_func)Ú	functoolsÚwraps)r   r   r   r   r   Úobsolete_client
   s   r   )Úwarningsr   ÚBaseExceptionr   r   r   r   r   r   Ú<module>   s    