a
    ¦ˆcò  ã                   @   s    d Z ddlZddlZdd„ ZdS )ú: 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  ˆ ¡‡ ‡fdd„ƒ}|S )r   c                     s   t jˆtdd� ˆ | i |¤ŽS )z The method/function wrapper. é   )Ú
stacklevel)ÚwarningsÚwarnÚDeprecationWarning)ÚargsÚkw)ÚfnÚmessage© úY/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/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   