
çW´  ã               @   s"   d  Z  d d l Z d d „  Z d S)z& Utility module to deprecate features é    Nc                s/   ˆ  j  } d t ƒ  ‰ ‡  ‡ f d d †  } | S)zÙ Return a function that warns it is deprecated by another function.

        Returns a new function that warns it is deprecated by function
        ``func``, then acts as a pass-through wrapper for ``func``.

        zUse %(func_name)s insteadc                 s#   t  j ˆ t d d ƒˆ  |  | Ž  S)NÚ
stacklevelé   )ÚwarningsÚwarnÚDeprecationWarning)ÚargsÚkwargs)ÚfuncÚwarn_msg© ú4/usr/lib/python3/dist-packages/debian/deprecation.pyÚdeprecated_func#   s    z/function_deprecated_by.<locals>.deprecated_func)Ú__name__Úvars)r	   Z	func_namer   r   )r	   r
   r   Úfunction_deprecated_by   s    	r   )Ú__doc__r   r   r   r   r   r   Ú<module>   s   