ó
ńą$Nc           @   s   d  Z  d d l Z d   Z d S(   s&    Utility module to deprecate features i˙˙˙˙Nc            s,    j  } d t        f d   } | S(   sŮ    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``.

        s   Use %(func_name)s insteadc             s#   t  j   t d d  |  |   S(   Nt
   stackleveli   (   t   warningst   warnt   DeprecationWarning(   t   argst   kwargs(   t   warn_msgt   func(    s6   /usr/lib/python2.7/dist-packages/debian/deprecation.pyt   deprecated_func#   s    (   t   __name__t   vars(   R   t	   func_nameR   (    (   R   R   s6   /usr/lib/python2.7/dist-packages/debian/deprecation.pyt   function_deprecated_by   s    	(   t   __doc__R   R   (    (    (    s6   /usr/lib/python2.7/dist-packages/debian/deprecation.pyt   <module>   s   