def _get_deprecation_warning(self, route):
result = '<STR_LIT>'<EOL>if route.deprecated:<EOL><INDENT>msg = '<STR_LIT>'.format(fmt_route_func(route))<EOL>if route.deprecated.by:<EOL><INDENT>msg += '<STR_LIT>'.format(fmt_var(route.deprecated.by.name))<EOL><DEDENT>result = '<STR_LIT>'.format(msg)<EOL><DEDENT>return result<EOL>
Returns a deprecation tag / message, if route is deprecated.