File: //proc/thread-self/root/lib/python3/dist-packages/debian/__pycache__/deprecation.cpython-38.pyc
U
&]�^� � @ s d Z ddlZdd� ZdS )z& Utility module to deprecate features � Nc sB z
� j }W n tk
r& � jj }Y nX d| �� �fdd�}|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``.
zUse %s insteadc s t j�tdd� � | |�S )N� )�
stacklevel)�warnings�warn�DeprecationWarning)�args�kwargs��funcZwarn_msg� �4/usr/lib/python3/dist-packages/debian/deprecation.py�deprecated_func% s z/function_deprecated_by.<locals>.deprecated_func)�__name__�AttributeError�__func__)r
Z func_namer
r r r �function_deprecated_by s
r )�__doc__r r r r r r �<module> s