3
:Ad]‰  ã               @   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© ú}/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.6/site-packages/traits-5.1.2-py3.6-linux-x86_64.egg/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   