(handler, url_prefix)
| 25 | |
| 26 | # pylint: disable=consider-using-f-string |
| 27 | def rewrite_handler(handler, url_prefix): |
| 28 | if isinstance(handler, url): |
| 29 | return url("/{}{}".format(url_prefix.strip("/"), handler.regex.pattern), |
| 30 | handler.handler_class, handler.kwargs, handler.name) |
| 31 | return ("/{}{}".format(url_prefix.strip("/"), handler[0]), handler[1]) |
| 32 | |
| 33 | |
| 34 | class Flower(tornado.web.Application): |
no outgoing calls