

def _get_redirect_route(self, template=None, name=None):
    template = (template or self.template)
    name = (name or self.name)
    defaults = self.defaults.copy()
    defaults.update({
        '_uri': self._redirect,
        '_name': name,
    })
    new_route = webapp2.Route(template, webapp2.RedirectHandler, defaults=defaults)
    return new_route

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/webapp2-2.3/webapp2_extras/routes.py RedirectRoute._get_redirect_route/original