3
8ßL]‰  ã               @   s    d Z ddlZddlZdd„ ZdS )z: A decorator for marking methods/functions as deprecated. é    Nc                s   ‡ fdd„}|S )zL A factory for decorators for marking methods/functions as deprecated.

    c                s   t jˆ ƒ‡ ‡fdd„ƒ}|S )z: A decorator for marking methods/functions as deprecated. c                 s   t jˆtdd� ˆ | |ŽS )z The method/function wrapper. é   )Ú
stacklevel)ÚwarningsÚwarnÚDeprecationWarning)ÚargsÚkw)ÚfnÚmessage© ú:/tmp/pip-install-5sebvq2j/traits/traits/util/deprecated.pyÚwrapper   s    z.deprecated.<locals>.decorator.<locals>.wrapper)Ú	functoolsÚwraps)r	   r   )r
   )r	   r   Ú	decorator   s    zdeprecated.<locals>.decoratorr   )r
   r   r   )r
   r   Ú
deprecated   s    r   )Ú__doc__r   r   r   r   r   r   r   Ú<module>   s   