From: Gareth T Date: Tue, 24 Dec 2019 12:30:35 +0000 (-0500) Subject: Fix syntax error in nested routing example X-Git-Tag: v6.1.0b1~32^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2797%2Fhead;p=thirdparty%2Ftornado.git Fix syntax error in nested routing example --- diff --git a/tornado/routing.py b/tornado/routing.py index e137a7284..f8f94e852 100644 --- a/tornado/routing.py +++ b/tornado/routing.py @@ -142,7 +142,7 @@ Of course a nested `RuleRouter` or a `~.web.Application` is allowed: router = RuleRouter([ Rule(HostMatches("example.com"), RuleRouter([ - Rule(PathMatches("/app1/.*"), Application([(r"/app1/handler", Handler)]))), + Rule(PathMatches("/app1/.*"), Application([(r"/app1/handler", Handler)])), ])) ])