3
d                 @   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 8/tmp/pip-build-7vycvbft/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   