o a@s@dZddlZz ddlmZmZWn eyYnwddZdS)z& Utility module to deprecate features N)AnyCallablecs@zj}Wn tyjj}Ynwd|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 insteadcstjtdd|i|S)N) stacklevel)warningswarnDeprecationWarning)argskwargsfuncwarn_msg4/usr/lib/python3/dist-packages/debian/deprecation.pydeprecated_func0sz/function_deprecated_by..deprecated_func)__name__AttributeError__func__)r func_namerrr rfunction_deprecated_by#s   r)__doc__rtypingrr ImportErrorrrrrrs