
    p h                     @    d dl Z d dlZ G d de          Zd ZddZdS )    Nc                       e Zd ZdZdS )ObsoleteExceptionz0Base class for warnings about obsolete features.N)__name__
__module____qualname____doc__     P/var/www/html/Sam_Eipo/venv/lib/python3.11/site-packages/twilio/base/obsolete.pyr   r      s        ::::r
   r   c                 F     t          j                    fd            }|S )zThis 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                  R    t          d                    j                            )Nzi{} has been removed from this version of the library. Please refer to current documentation for guidance.)r   formatr   )argskwargsfuncs     r   new_funcz!obsolete_client.<locals>.new_func   s*    BBH&BWBW
 
 	
r
   	functoolswraps)r   r   s   ` r   obsolete_clientr   	   s:    
 _T
 
 
 
 
 Or
   c                 F      fd}t                     r |           S |S )z
    This is a decorator which can be used to mark deprecated methods.
    It will report in a DeprecationWarning being emitted to stderr when the deprecated method is used.
    c                 J     t          j                    fd            }|S )Nc                      d                     j                  }|t          t                    rd                               ndz  }t	          j        |t                      | i |S )Nz#Function method .{}() is deprecatedz in favor of .{}() )r   r   
isinstancestrwarningswarnDeprecationWarning)r   r   msgr   r   s      r   wrapperzEdeprecated_method.<locals>.deprecated_method_wrapper.<locals>.wrapper   su    7>>t}MMCh,,$++H555C
 M#12224((((r
   r   )r   r!   r   s   ` r   deprecated_method_wrapperz4deprecated_method.<locals>.deprecated_method_wrapper   s>    				) 	) 	) 	) 	) 
		) r
   )callable)r   r"   s   ` r   deprecated_methodr$      sE          3((222$$r
   )N)r   r   	Exceptionr   r   r$   r	   r
   r   <module>r&      sq        ; ; ; ; ;	 ; ; ;  % % % % % %r
   