def deprecated(fun_name=None, msg="<STR_LIT>"):
def _deprecated(fun):<EOL><INDENT>'''<STR_LIT>'''<EOL>@wraps(fun)<EOL>def _wrapper(*args, **kwargs):<EOL><INDENT>'''<STR_LIT>'''<EOL>name = fun_name if fun_name is not None else fun.__name__<EOL>_warn_deprecated('<STR_LIT>' % (name, msg))<EOL>return fun(*args, **kwargs)<EOL><DEDENT>return _wrapper<EOL><DEDENT>return _deprecated<EOL>
Issue a deprecation warning for a function